My Oracle Support Banner

Java SE "keytool error: java.lang.RuntimeException: java.io.IOException: DNSName components must begin with a letter" (Doc ID 2474036.1)

Last updated on MARCH 31, 2023

Applies to:

Java SE JDK and JRE - Version 7 and later
Information in this document applies to any platform.

Symptoms

Keytool does not recognize server names that begin with a number. It emits the following error when trying to generate a certificate:

However, since RFC 1123, the DNS naming convention requires allowing host names to begin with either a letter or number. 


Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.