Yes, thanks to all for the contributions. Fortunately I'm in control of the HTTPS server side so I could fix the SSL certificate there by recreating it with the keytool options
-ext nas=ip:X.Y.Z.W,dns:localhost,dns:demohost
This adds a section like this
SubjectAlternativeName [ DNSName: localhost DNSName: demohost IPAddress: X.Y.Z.W ]
into the certificate stored on the created server's keystore (jks). I then imported it (always with keytool) into the cacerts of the jdk I use to run basex with. Finally I restarted basex server and gui. At that point everything works fine and I can send-request to either of the three possibilities ('localhost', ip address or any other added dns name like 'demohost').
I know this is not basex specific but maybe this detailed answer could be useful for anyone who will stumble upon this discussion for the same reasons as mines.
Thanks again, Marco.
On 02/06/2014 02:59 PM, Florent Georges wrote:
Marco Lettere wrote:
Hi,
anyone succeded in using send-request to send data to an HTTPS server? No matter how hard I try (even handling all that Certificate import stuff) I conntinuosly get this error message.
[HC0001] java.security.cert.CertificateException: No subject alternative names present
Do you use an IP instead of a domain name? Are those links of any help?
http://stackoverflow.com/questions/10258101/sslhandshakeexception-no-subject... http://stackoverflow.com/questions/8443081/how-are-ssl-certificate-server-na...
Regards,
-- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/