http plugin and SSL without cerificate?

Hi, I’m using a Servoy batch processor to access a web service using the http plugin.

The server I’m accessing requires SSL, https://. But does not have a certificate yet as we have not moved the domain across from the old web site, so I get

javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching wildylaw-001.vm.brightbox.net found

Developer does not complain about this, only the batch processor.

Any way of surpressing this?

Christian,

Actually, this server has a certificate, but it’s not its own.
How do you connect? using which Servoy version?
I could connect from both developer and a batch processor without a problem.

Rob

Same problem here…

connecting to a server I control via https.

I’m using the http plugin and the request never goes to the server (ie, access logs show no access).

The server has a self-signed certificate and servoy server returns in the log:

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 com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
     at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
     at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
     at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
     at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
     at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
     at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
     at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
     at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
     at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
     at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
     at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
     at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
     at java.io.BufferedOutputStream.write(Unknown Source)
     at java.io.FilterOutputStream.write(Unknown Source)
     at org.apache.commons.httpclient.methods.multipart.Part.sendEnd(Part.java:293)
     at org.apache.commons.httpclient.methods.multipart.Part.send(Part.java:312)
     at org.apache.commons.httpclient.methods.multipart.Part.sendParts(Part.java:384)
     at org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity.writeRequest(MultipartRequestEntity.java:163)
     at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
     at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
     at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
     at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
     at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
     at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
     at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
     at com.servoy.extensions.plugins.http.Poster.js_doPost(Unknown Source)
     at sun.reflect.GeneratedMethodAccessor711.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:334)
     at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1254)
     at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2031)
     at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:94)
     at com.servoy.j2db.scripting.e.call(Unknown Source)
     at com.servoy.j2db.develop.debugger.k.a(Unknown Source)
     at com.servoy.j2db.develop.debugger.k.access$100(Unknown Source)
     at com.servoy.j2db.develop.debugger.k$2.run(Unknown Source)
     at java.awt.event.InvocationEvent.dispatch(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
     at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
     at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
     at sun.security.validator.Validator.validate(Unknown Source)
     at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(Unknown Source)
     at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
     at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
     ... 42 more
    Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
     at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
     at java.security.cert.CertPathBuilder.build(Unknown Source)

Any ideas? All we’re worried about it encryption, not verification - will the http plugin not work with a self-signed cert?

NCM
FSCI