I hereby claim:
- I am maverik on github.
- I am maverik (https://keybase.io/maverik) on keybase.
- I have a public key ASAsTbvDO_BXz021JE9WlDAIOy9tVgQXcXe3WXl44zfx7Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
static readonly SerializationTypeConverter Converter = new SerializationTypeConverter(); | |
static readonly Command SelectSerializationDataCommand = new Command("Select-Object") { Parameters = { { "Property", "SerializationData" } } }; | |
static IEnumerable<T> ExchangeSerializerCastTo<T>(IEnumerable<object> results) => results.Where(x => Converter.CanConvertFrom(x, typeof(T))) | |
.Select(x => Converter.ConvertFrom(x, typeof(T), CultureInfo.CurrentCulture, false)) | |
.OfType<T>(); | |
void Main() | |
{ | |
var state = InitialSessionState.CreateDefault2(); | |
//Exchange2010SP3.psm1 was created using `Export-PSSession -OutputModule Exchange2010SP3 -CommandName *` command |
Verifying that "maverik.id" is my Blockstack ID. https://onename.com/maverik
// this snippet can be easily used in any normal c# project as well by simply removing the .Dump() methods | |
// and saving the output into a variable / file of your choice. | |
// you'll need to add BouncyCastle.Crypto nuget to use this. | |
// tested on 1.8.1 | |
// OUTPUTS: CSR, Private Key, Public Key, Self-signed Certificate | |
using Org.BouncyCastle.Asn1; | |
using Org.BouncyCastle.Asn1.Cms; | |
using Org.BouncyCastle.Asn1.Pkcs; | |
using Org.BouncyCastle.Asn1.X509; |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Runtime.InteropServices; | |
using System.Runtime.InteropServices.ComTypes; | |
using System.Reflection; | |
using System.IO; | |
using System.Windows; | |
using System.Windows.Forms; |