diff options
Diffstat (limited to 'crypto/src/x509/X509Certificate.cs')
-rw-r--r-- | crypto/src/x509/X509Certificate.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/src/x509/X509Certificate.cs b/crypto/src/x509/X509Certificate.cs index 944b627b0..465899042 100644 --- a/crypto/src/x509/X509Certificate.cs +++ b/crypto/src/x509/X509Certificate.cs @@ -265,6 +265,8 @@ namespace Org.BouncyCastle.X509 get { return c.EndDate.ToDateTime(); } } + public virtual TbsCertificateStructure TbsCertificate => c.TbsCertificate; + /// <summary> /// Return the Der encoded TbsCertificate data. /// This is the certificate component less the signature. @@ -464,6 +466,11 @@ namespace Org.BouncyCastle.X509 } /// <summary> + /// Return the plain SubjectPublicKeyInfo that holds the encoded public key. + /// </summary> + public virtual SubjectPublicKeyInfo SubjectPublicKeyInfo => c.SubjectPublicKeyInfo; + + /// <summary> /// Get the public key of the subject of the certificate. /// </summary> /// <returns>The public key parameters.</returns> |