Getting error java.io.IOException: DNSName components must begin with a letter when creating CSR with wildcard DNS name by keytool
Issue
The following command to create wildcard DNS certification will be error with below message. Is there any workaround?
$ keytool -certreq -keystore server.jks -alias server -file server.csr -ext SAN="DNS:*.redhat.com" -storepass <keystore-password>
keytool error: java.lang.RuntimeException: java.io.IOException: DNSName components must begin with a letter or digit
Environment
- Red Hat build of OpenJDK
- 8
- 11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.