7174966: With OCSP enabled on Java 7 get error 'Wrong key usage' with Comodo certificate

Reviewed-by: xuelei
This commit is contained in:
Vinnie Ryan 2013-05-29 14:57:51 +01:00
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)) {