summary refs log tree commit diff
path: root/crypto/src/ocsp/CertificateID.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/ocsp/CertificateID.cs')
-rw-r--r--crypto/src/ocsp/CertificateID.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/ocsp/CertificateID.cs b/crypto/src/ocsp/CertificateID.cs
index 215857ae9..b972a0f66 100644
--- a/crypto/src/ocsp/CertificateID.cs
+++ b/crypto/src/ocsp/CertificateID.cs
@@ -127,7 +127,7 @@ namespace Org.BouncyCastle.Ocsp
 				AsymmetricKeyParameter issuerKey = issuerCert.GetPublicKey();
 				SubjectPublicKeyInfo info = SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(issuerKey);
 				byte[] issuerKeyHash = DigestUtilities.CalculateDigest(
-					hashAlgorithm, info.PublicKeyData.GetBytes());
+					hashAlgorithm, info.PublicKey.GetBytes());
 
 				return new CertID(hashAlg, new DerOctetString(issuerNameHash),
 					new DerOctetString(issuerKeyHash), serialNumber);