I would like to ask if it is possible to create a CSR that contains SAN entries.
I created keystore as
keytool -genkeypair -keyalg RSA -keysize 2048 -alias testAlias -ext SAN=dns:test.example.com -keystore test.jks -storetype JKS -dname "CN=test"
I can verify with keytool that the SAN is in the keystore
keytool -list -v -keystore test.jks
and relevant part of the output
#1: ObjectId: 2.5.29.17 Criticality=false SubjectAlternativeName [ DNSName: test.example.com ]
Then I created a CSR using keytool:
keytool -certreq -file test.csr -keystore test.jks -alias testAlias
but there is no SAN information in the CSR.
How to check:
keytool -printcertreq -file test.csr -v
it should be something like
Extension Request:
Did I miss some option for certreq ?
certificate keytool
Betlista Jun 10 '15 at 11:39 on 2015-06-10 11:39
source share