2017-05-17 07:06 AM
none
#wifi-ssl-tls #spwf01saSolved! Go to Solution.
2017-05-22 12:48 AM
Hello,
The problem is solved; The root certificate I had was not the right one. It was an intermediate certificate that did not refer our server. There was another certificate lower level than the one I was using which was not available on the Amazon site. I retrieved this one and now I can communicate with the server. Thank you for your help.
2017-05-17 11:28 AM
Hello Jean,
-322 means
DOMAIN_NAME_MISMATCH. Are you sure '
*.api.romy_paris.com' is the Common Name (CN)
field inside the server certificate? I've never tried a wildcard in there.
Ciao
jerry
2017-05-18 09:13 AM
Hi Jean,
have you tried to make some tests with another device, for example a PC with OpenSSL, in order to check if the issue is related to a bad configuration or a wrong certificate?
If you can post the output of the following command:
openssl s_client -connect staging-figure.api.romy-paris.com:443 -debug -showcerts
we can see if the exchanged certificates are supported by the module or there are some other kind of problems...
Best Regards
2017-05-19 02:20 AM
Waiting for Adriano, I see an error '
unable to get local issuer certificate
'. Probably it's not critical for OpenSSL (there is a 'return 0'), but critical for TLS inside the SPWF01.found this on Google: '
you're referencing the wrong intermediate certificate.
As you have been issued with a SHA256 certificate, you will need the SHA256 intermediate. You can grab it from here:
http://secure2.alphassl.com/cacert/gsalphasha2g2r1.crt
'
I don't know if can help.
Any possibility to try with another certificate (giving no errors on OpenSSL?
2017-05-19 04:45 AM
Same error message also with OpenSSL ('
unable to get local issuer certificate
')?2017-05-19 05:12 AM
yes ERROR: SSL/TLS Error: Unable to connect (-188)
2017-05-19 07:19 AM
This is what I see from debug log.
During handshake, SPWF01S is receiving 4 certificates:
At the end, since anyError, return value is an error.
-188 means the server certificate is not including the CA reference.
2017-05-22 12:48 AM
Hello,
The problem is solved; The root certificate I had was not the right one. It was an intermediate certificate that did not refer our server. There was another certificate lower level than the one I was using which was not available on the Amazon site. I retrieved this one and now I can communicate with the server. Thank you for your help.