How to add subject alernative name to ssl certs?

前端 未结 3 356
情歌与酒
情歌与酒 2020-11-29 00:16

I\'m using openssl to create self-signed certs. I\'m getting this error with the certs I generated:

javax.net.ssl.SSLHandshakeException: ja

3条回答
  •  渐次进展
    2020-11-29 00:59

    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

提交回复
热议问题