Getting error java.io.IOException: DNSName components must begin with a letter when creating CSR with wildcard DNS name by keytool

Solution Unverified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content