2015-11-15 11:58 PM
Hi,
I'm trying to establish a TLS communication using the one-way authentication. I loaded into the SPWF01 the CA certificate as described in the example of the AN4683 but when I try to connect to the openssl server the SPWF01 closes the connection with ERROR: SSL/TLS Error: Unable to connect (-1). I'm sure that the certificates are correct (openssl verify is OK), module's date and time are set corretly, the CA certificate is loaded into the module and the CA domain name is as espected. The FW module is 150410-c2e37a3-SPWF01S and I have used the last version of OpenSSL: openssl-1.0.2d Can anybody help me? Thank you. Paolo2015-11-16 05:48 AM
Hi Paolo,
are you using the one-way authentication? Did you observe the issue both using the openssl server and using a different SSL/TLS server?Could you please perform the connection using openssl-1.0.1i? (https://www.openssl.org/source/old/1.0.1/openssl-1.0.1i.tar.gz).If it doesn't work, I will send you the script to generate the needed certificates for the desired authentication mode.In the meantime, I'm checking the socket communication using openssl-1.0.2d in our side.2015-11-16 08:13 AM
Ciao Salvatore,
I'm using the one-way authentication and I tried only the openssl server. I'm sorry but I'm not able to compile openssl, I have used a precompiled version. Paolo2015-11-16 01:07 PM
Hi Salvatore,
I built your openssl and the problem still remain. I also tried the script that I found There must be something wrong that I do with the CA certificate, maybe when I include it in the code as C string. Paolo2015-11-17 01:11 AM
Hi Paolo,
at the end of the bash script attached in your previous post, you can find the commands to open the openssl client.Could you please try to re-generate the certificates and establish a connection between the openssl client and openssl server? If it works, probably the issue is related to the loading of the certificates into the module.2015-11-17 04:38 AM
Hi Salvatore,
I don't have xterm. Anyway, the openssl client and server launched from the DOS command line communicate using the certificates generated by the script. Notice that the script asked for openssl.cfg and to remove the error I used that I found in the openssl 1.0.2d but I think this is not relevant Paolo2015-11-17 07:34 AM
Hi Salvatore,
I have found the flaw! Certificates have an expiry date but also a ''not before'' date. I always loaded the date when I started the tests and all the certificates I made from that time have for the module a date in the future. Thank you for your help. Paolo