Skip to content

Commit 60e1e84

Browse files
Lauris Kaplinskimrts
authored andcommitted
Set OCSP nonce length to 32 bytes
1 parent 58796e3 commit 60e1e84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/eu/webeid/security/validator/ocsp/OcspRequestBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public OCSPReq build() throws OCSPException {
8989
}
9090

9191
private void addNonce(OCSPReqBuilder builder) {
92-
final byte[] nonce = new byte[8];
92+
final byte[] nonce = new byte[32];
9393
GENERATOR.nextBytes(nonce);
9494

9595
final Extension[] extensions = new Extension[]{

0 commit comments

Comments
 (0)