# HG changeset patch # User vinnie # Date 1369835871 -3600 # Node ID 90a2bf654c4fb3e2314916aeb85264135aa9fb71 # Parent 8bbdf55ba9d4b391adf3f9dd2f5de5702d6f8254 7174966: With OCSP enabled on Java 7 get error 'Wrong key usage' with Comodo certificate Reviewed-by: xuelei diff -r 8bbdf55ba9d4 -r 90a2bf654c4f jdk/src/share/classes/sun/security/provider/certpath/OCSPResponse.java --- 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)) {