public static string CreateCertificate() { var cryptoWorker = new CryptoWorker(CryptoSystemType.RSA, string.Empty, false); var bytes = cryptoWorker.ExportKeyBlob(true); return(Convert.ToBase64String(bytes)); }
private static string CreateCertificate() { var cryptoWorker = new CryptoWorker(CryptoSystemType.RSA, string.Empty, false); var bytes = cryptoWorker.ExportKeyBlob(true); return(Convert.ToBase64String(bytes)); //return string.Concat(bytes.Select(b => Convert.ToString(b, 10))); }