I\'m using openssl to create self-signed certs. I\'m getting this error with the certs I generated:
javax.net.ssl.SSLHandshakeException: ja
When generating CSR is possible to specify -ext attribute again to have it inserted in the CSR
keytool -certreq -file test.csr -keystore test.jks -alias testAlias -ext SAN=dns:test.example.com
complete example here: How to create CSR with SANs using keytool