Пример #1
0
        public void GenerateCsrTest()
        {
            var certificateSubjectText = "CN=Magnet, C=NL";

            var generator = new CertificateGenerator();

            var keypair = generator.GenerateKeyPair();

            var csr = generator.GenerateCsr(keypair, certificateSubjectText);

            Assert.NotNull(csr.CsrAsPem);
            Assert.NotNull(csr.PrivateKeyAsPem);
        }