2015-01-07 28 views
5

Tôi đang tạo cacerts sử dụng JDK1.6 keytool.Tương thích với các phiên bản java

Sau đó, tôi đang sử dụng này cacerts tập tin sử dụng JRE1.7, nhưng tôi nhận được ngoại lệ như:

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed 
     at sun.security.ssl.Alerts.getSSLException(Unknown Source) 
     at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source) 
     at sun.security.ssl.Handshaker.fatalSE(Unknown Source) 
     at sun.security.ssl.Handshaker.fatalSE(Unknown Source) 
     at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source) 
     at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source) 
     at sun.security.ssl.Handshaker.processLoop(Unknown Source) 
     at sun.security.ssl.Handshaker.process_record(Unknown Source) 
     at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) 
     at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source) 
     at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) 
     at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) 
     at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source) 
     at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source) 
     at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source) 
     at com.sun.identity.setup.OpenSSOConfigurator.main(OpenSSOConfigurator.java:172) 
Caused by: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed 
     at sun.security.validator.PKIXValidator.doValidate(Unknown Source) 
     at sun.security.validator.PKIXValidator.engineValidate(Unknown Source) 
     at sun.security.validator.Validator.validate(Unknown Source) 
     at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source) 
     at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source) 
     at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source) 
     ... 12 more 
Caused by: java.security.cert.CertPathValidatorException: signature check failed 
     at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(Unknown Source) 
     at sun.security.provider.certpath.PKIXCertPathValidator.doValidate(Unknown Source) 
     at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(Unknown Source) 
     at java.security.cert.CertPathValidator.validate(Unknown Source) 
     ... 18 more 
Caused by: java.security.SignatureException: Signature does not match. 
     at sun.security.x509.X509CertImpl.verify(Unknown Source) 
     at sun.security.provider.certpath.BasicChecker.verifySignature(Unknown Source) 
     at sun.security.provider.certpath.BasicChecker.check(Unknown Source) 
     ... 22 more 
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed 
     at sun.security.ssl.Alerts.getSSLException(Unknown Source) 
     at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source) 
     at sun.security.ssl.Handshaker.fatalSE(Unknown Source) 
     at sun.security.ssl.Handshaker.fatalSE(Unknown Source)2015-01-07 19:22:02 IST - ERROR: Problems - bootstrap file not created 

là vấn đề tương thích này? Có phải cacerts được tạo bằng một phiên bản java không tương thích với một phiên bản java khác không?

+1

Dường như CA không hợp lệ trong Java 7; có lẽ nó đã bị thu hồi. –

+0

@Batty Bạn có thể kiểm tra xem câu trả lời của tôi có đúng không? –

Trả lời

2

Như đã giải thích trong another answer

Câu trả lời cho vấn đề của bạn là bạn đang sử dụng SUN là nhà cung cấp keystore của mình java 6 đã được phát hành trước khi oracle mua SUN và java 7 được phát hành sau và rất nhiều các gói Sun hiện không được chấp nhận.

Để biết chi tiết đầy đủ đọc tài liệu chính thức: Java Cryptography Architecture Oracle Providers Documentation for Java Platform Standard Edition 7

Các vấn đề liên quan