Skip to content

Commit 180c27d

Browse files
committed
Extension test and new TBSCertificate class
1 parent a73eaad commit 180c27d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/OCSPRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ public static function createSimple(Certificate $publicCertificate, Certificate
8686
]
8787
),
8888
# issuerNameHash
89-
OctetString::createFromString($intermediateCertificate->getNameHash($hashAlgorithmOID)),
89+
Algorithm::hashValue($hashAlgorithmOID, $intermediateCertificate->getSubject()->getBinary()),
9090
# issuerKeyHash
91-
OctetString::createFromString($intermediateCertificate->getKeyHash($hashAlgorithmOID)),
91+
Algorithm::hashValue($hashAlgorithmOID, $intermediateCertificate->getPublicKey()->getKey()->getBinary()),
9292
# serialNumber
9393
Integer::create($publicCertificate->getSerial())
9494
]

0 commit comments

Comments
 (0)