Error connection to a web service (Alfresco) : "certification pathConnexion"

1
0
-1

Hello everybody,

I still blocked when I try to use an Alfresco connector to create a folder in version 4.2. The connexion port of the server is 443. To define this port, I have created a little groovy script:

  1. long port = 443;
  2. return port;

Return type: long

I think that I dont have the file "certification path", but where can I found this file and where import it? which folder?

The error in the log is the following:

  1. Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  2.  
  3. at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
  4.  
  5. at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1904)
  6.  
  7. at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:279)
  8.  
  9. at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:273)
  10.  
  11. at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1446)
  12.  
  13. at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:209)
  14.  
  15. at sun.security.ssl.Handshaker.processLoop(Handshaker.java:901)
  16.  
  17. at sun.security.ssl.Handshaker.process_record(Handshaker.java:837)
  18.  
  19. at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1023)
  20.  
  21. at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)
  22.  
  23. at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:709)
  24.  
  25. at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
  26.  
  27. at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
  28.  
  29. at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
  30.  
  31. at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828)
  32.  
  33. at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.flushRequestOutputStream(MultiThreadedHttpConnectionManager.java:1565)
  34.  
  35. at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2077)
  36.  
  37. at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
  38.  
  39. at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
  40.  
  41. at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
  42.  
  43. at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
  44.  
  45. at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
  46.  
  47. at org.apache.abdera.protocol.client.AbderaClient.execute(AbderaClient.java:688)
  48.  
  49. ... 13 more
  50.  
  51. Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  52.  
  53. at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:385)
  54.  
  55. at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
  56.  
  57. at sun.security.validator.Validator.validate(Validator.java:260)
  58.  
  59. at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326)
  60.  
  61. at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231)
  62.  
  63. at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)
  64.  
  65. at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1428)

Thank you for your help, Sylvain

No answers yet.
Notifications