Communication over SSL with webserver having self-signed certificate

Communication over SSL with webserver having self-signed certificate

sebastien_b49
Advocate Advocate
85 Views
1 Reply
Message 1 of 2

Communication over SSL with webserver having self-signed certificate

sebastien_b49
Advocate
Advocate

Hi !

 

I am trying to setup a communication between a FlexSim model and a local webserver that enforce HTTPS. 

I can make https request with flexsim to some public websites, but I cannot do it to the local webserver.

 

I added the certificate to the root of windows so I can make request from my browser for instance.

But FlexSim receives nothing from the request I made. Here is the samll code I used for my test. 

 

Http.Request request = Http.Request("https://192.168.1.1:2387/test/test2");
request.method = Http.Method.Get;
Http.Response response = request.sendAndWait();
print(response.value);

I also tried with 

request.useSSL = 1; 

 

I just receive 0 as response.value. I can't understand why.

Does FlexSim support the use of certificates that do not come from certificate authorities ?

 

0 Likes
86 Views
1 Reply
Reply (1)
Message 2 of 2

joerg_vogel_HsH
Mentor
Mentor

Here is an older answer about https.

It looks like that you need to set property port.