ldaley / grails-remote-control

Facilitates executing commands (closures) against remote or local Grails applications
Apache License 2.0
23 stars 16 forks source link

Not working where server has self-signed cert #2

Closed halfbaked closed 11 years ago

halfbaked commented 11 years ago

Where target url is https , and the cert is self signed, exception occurs:

groovyx.remote.RemoteControlException: Error sending command chain to 'https://www.staging.on.dolicloud.com/grails-remote-control'
at groovyx.remote.transport.http.HttpTransport.send(HttpTransport.groovy:65)
at groovyx.remote.client.RemoteControl.sendCommandChain(RemoteControl.groovy:114)
at groovyx.remote.client.RemoteControl.exec(RemoteControl.groovy:73)
at groovyx.remote.client.RemoteControl.exec(RemoteControl.groovy:67)
at groovyx.remote.client.RemoteControl.call(RemoteControl.groovy:81)
at AdminSpec.login(AdminSpec.groovy:18)
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
at groovyx.remote.transport.http.HttpTransport.send_closure1(HttpTransport.groovy:61)
at groovyx.remote.transport.http.HttpTransport.send(HttpTransport.groovy:53)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268)
halfbaked commented 11 years ago

I think I have it working here. Pull request to follow...

ldaley commented 11 years ago

Duplicates #3