Unanswered question

How to resolve java.security.cert.CertificateException while running javascript through SSL

Neoload returns following exception from java script while running test through https protocol, it works fine through http: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching <<Server Name>> found (Script=writeFile;Line=49). Some missing client certificates in Certificate Manager or something else?

Answers

java script calling function from JS library то construct link for windows download command to save file from server to local, not sending any HTTPs through JAVA code:

function writeJar(asSourseUrl, asTargetFile) {
lock.lock();
var loUrl = new java.net.URL(asSourseUrl);
var loFos = new java.io.FileOutputStream(asTargetFile);
var loBufferInputStream = new java.io.BufferedInputStream(loUrl.openStream());
var loBufferOutputStream = new java.io.BufferedOutputStream(loFos);
var i;
while((i = loBufferInputStream.read()) != -1)
{
loBufferOutputStream.write(i);
}
loBufferInputStream.close();
loBufferOutputStream.close();
loFos.close();
lock.unlock();
}