<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div>Dear all,<br><br></div>I use a gsoap application for which I write the server (php/apache) and client (gsoap and openssl). As I am pretty sure my problem comes from openssl and not gsoap, I am asking my question here.<br><br></div>I developped the service a few years ago and got wildcard certificates from Startcom. Due to the recent probems with startcom, I migrated my certificates to COMODO. I also tried to rationalise the number of certificates, and I think several of my problems come from here.<br><br></div>For a dedicate web service, I use a server located at <a href="https://www.online-rdv.be/v1/..">https://www.online-rdv.be/v1/..</a>.. With my previous certificate, CN of certificate was a wildcard certificate : *.<a href="http://online-rdv.be">online-rdv.be</a>. Everything worked fine.<br><br></div>But now, my new certificate is common for all my web sites. So, the CN is <a href="http://www.ams-solutions.be">www.ams-solutions.be</a> and, in the list of alternate names, I have an entry *.<a href="http://online-rdv.be">online-rdv.be</a>.<br><br></div>From this point, all gsoap connections fail from SSL checks. If checked the certificate bundle provided to my gsoap client application and it contains root certificate, as well as intermediate certificates.<br><br></div>This same soap server is directly used by the website and all browsers I checked do not encounter the problem.<br><br></div>So, my best guess is that the way I configure openssl with gsoap is not correct and does not allow validating a web site if it does not match the CN certificate field.<br><br></div>I do no special configuration (nearly all default parameters). In fact, the only ssl configuration I perform is the following :<br><br>  soap_ssl_init();<br>   soap_ssl_client_context(service.soap,<br>                           SOAP_SSL_DEFAULT,<br>                           NULL,<br>                           NULL,<br>                           cert_path.GetCString(),<br>                           NULL,<br>                           NULL);<br><br><br></div>where cert_path points to a file with root and intermediate certificates.<br><br></div>Any suggestion on how to solve my problem ?<br><br></div>Regards,<br><br></div>Brice<br></div>