public static string CreateCertificate()
        {
            var cryptoWorker = new CryptoWorker(CryptoSystemType.RSA, string.Empty, false);
            var bytes        = cryptoWorker.ExportKeyBlob(true);

            return(Convert.ToBase64String(bytes));
        }
Ejemplo n.º 2
0
        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)));
        }