7174966: With OCSP enabled on Java 7 get error 'Wrong key usage' with Comodo certificate
Reviewed-by: xuelei
--- a/jdk/src/share/classes/sun/security/provider/certpath/OCSPResponse.java Wed May 29 10:24:11 2013 +0100
+++ b/jdk/src/share/classes/sun/security/provider/certpath/OCSPResponse.java Wed May 29 14:57:51 2013 +0100
@@ -552,7 +552,7 @@
try {
Signature respSignature = Signature.getInstance(sigAlgId.getName());
- respSignature.initVerify(cert);
+ respSignature.initVerify(cert.getPublicKey());
respSignature.update(tbsResponseData);
if (respSignature.verify(signature)) {