Skip to content

Commit ce6a44b

Browse files
Lauris Kaplinskimrts
authored andcommitted
Use 32 byte nonce in OCSP request
1 parent d3b78a5 commit ce6a44b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validator/ocsp/OcspRequestBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function build(): OcspRequest
6161
$ocspRequest->addCertificateId($this->certificateId);
6262

6363
if ($this->ocspNonceEnabled) {
64-
$nonceBytes = call_user_func($this->secureRandom, 8);
64+
$nonceBytes = call_user_func($this->secureRandom, 32);
6565
$ocspRequest->addNonceExtension($nonceBytes);
6666
}
6767

0 commit comments

Comments
 (0)