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?

Oleg N.
Oleg N.

Oleg N.

Level
0
20 / 100
points

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

I'm not sure to understand. What do you do in your Javascript to get that error?

Are you trying to send an HTTPS request through JAVA code?

Oleg N.
Oleg N.

Oleg N.

Level
0
20 / 100
points

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();
}

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

Your issue seems related to your certificate. You should check that URL where someone explains how to overcome that issue.