Esempio n. 1
0
 public X509Enrollment(KeyPair signingKeyPair, string signedPem)
 {
     if (signingKeyPair == null)
     {
         throw new ArgumentException("KeyPair cannot be null");
     }
     Key  = KeyPair.AsymmetricCipherKeyPairToPEM(null, signingKeyPair.PrivateKey);
     Cert = signedPem;
 }
Esempio n. 2
0
 public X509Enrollment(AsymmetricKeyParameter key, string signedPem)
 {
     Key  = KeyPair.AsymmetricCipherKeyPairToPEM(null, key);
     Cert = signedPem;
 }