changeset 6113:d61d06e30d0b

7174966: With OCSP enabled on Java 7 get error 'Wrong key usage' with Comodo certificate Reviewed-by: xuelei
author vinnie
date Wed, 29 May 2013 20:10:59 +0100
parents 98123b18dcb4
children afd02b86df42 f363150cc5f7
files src/share/classes/sun/security/provider/certpath/OCSPResponse.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/provider/certpath/OCSPResponse.java	Wed May 29 18:45:46 2013 +0400
+++ b/src/share/classes/sun/security/provider/certpath/OCSPResponse.java	Wed May 29 20:10:59 2013 +0100
@@ -553,7 +553,7 @@
 
         try {
             Signature respSignature = Signature.getInstance(sigAlgId.getName());
-            respSignature.initVerify(cert);
+            respSignature.initVerify(cert.getPublicKey());
             respSignature.update(responseData);
 
             if (respSignature.verify(signBytes)) {