Goedel.Cryptography.PKIX.Certificate.Certificate C# (CSharp) Method

Certificate() public method

Create a certificate with the specified subject Key. Note that the template is must be completed with calls to set validity etc. before use.
public Certificate ( CryptoProvider SubjectKey, Application Application ) : System
SubjectKey CryptoProvider Cryptographic provider for the subject key.
Application Application Certificate application(s).
return System
        public Certificate(CryptoProvider SubjectKey, Application Application) {
            _KeyPair = SubjectKey.KeyPair;
            if (SubjectKey as CryptoProviderSignature != null) {
                _CryptoProviderSignature = SubjectKey as CryptoProviderSignature;
                }
            if (SubjectKey as CryptoProviderExchange != null) {
                _CryptoProviderExchange = SubjectKey as CryptoProviderExchange;
                }

            var SubjectName = new Name(SubjectKey).ToList();
            TBSCertificate = new TBSCertificate(SubjectKey.KeyPair, SubjectName);
            }

Same methods

Certificate::Certificate ( KeyPair SubjectKey, Application Application ) : System
Certificate::Certificate ( KeyPair SubjectKey, Application Application, Certificate SigningCertificate ) : System
Certificate::Certificate ( KeyPair SubjectKey, Application Application, string Subject, string SubjectAltName ) : System
Certificate::Certificate ( byte Data ) : System