2011-05-09 2 views
1

나는 웹 서비스의 SSL 클라이언트 인증에 연결하고있는 클라이언트 인증, 나는하여 키 스토어를 설정 오류SSL 키와 자바

WARNING:Cannot connecti with url: https://[redacted] ; reason: javax.xml.soap.SOAPException: Message send failed: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
Exception in thread "main" java.rmi.RemoteException: ; nested exception is: 
    HTTP transport error: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
    at xxcompany.bank.proxy.runtime.ServicesBinding_Stub.getAccountBalance(ServicesBinding_Stub.java:146) 
    at xxcompany.bank.proxy.ServicesPortClient.getAccountBalance(ServicesPortClient.java:48) 
    at xx.bank.client.main(client.java:111) 
Caused by: HTTP transport error: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 
    at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(HttpClientTransport.java:174) 
    at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(HttpClientTransport.java:150) 
    at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:176) 
    at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:113) 
    at xxcompany.bank.proxy.runtime.ServicesBinding_Stub.getAccountBalance(ServicesBinding_Stub.java:130) 
    ... 2 more 

키 저장소는 클라이언트의 개인 인증서는 containes, 인증서가 유효하고 잘 작동 할 때 유를 브라우저에서 sed. 어떻게 수정해야합니까?

감사합니다.

답변

3

이 오류는 서버 인증서에 서명 한 CA가 잘 알고있는 CA가 아니거나 CA의 공용 인증서가 클라이언트의 트러스트 스토어에없는 경우 발생합니다. 이 문제를 해결하려면 CA의 공용 인증서를 클라이언트의 트러스트 스토어에 추가해야합니다.

자세한 지침은 unable to find valid certification path to requested targetNo more 'unable to find valid certification path to requested target'을 참조하십시오.

+0

링크가 깨졌습니다 :-( –