7174966: With OCSP enabled on Java 7 get error 'Wrong key usage' with Comodo certificate
Reviewed-by: xuelei
This commit is contained in:
parent
fc0eb58944
commit
d57a6a4cb3
@ -552,7 +552,7 @@ public final class OCSPResponse {
|
||||
|
||||
try {
|
||||
Signature respSignature = Signature.getInstance(sigAlgId.getName());
|
||||
respSignature.initVerify(cert);
|
||||
respSignature.initVerify(cert.getPublicKey());
|
||||
respSignature.update(tbsResponseData);
|
||||
|
||||
if (respSignature.verify(signature)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user