Created
August 7, 2013 02:02
-
-
Save PaulStovell/6170588 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string ToBase64String(X509Certificate2 certificate) | |
{ | |
byte[] exported = certificate.Export(X509ContentType.Pkcs12); | |
string encoded = Convert.ToBase64String(exported); | |
return encoded; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment