Incorrect AVA format Error Message

Document created by RaphaelRivero Employee on Aug 20, 2015Last modified by dave_lesshafft on Mar 2, 2016
Version 2Show Document
  • View in full screen mode
When trying to generate a CSR file you have to run multiple keytool commands. When you run the keytool command to specify your -dname, you get the following error message.

keytool error: java.io.IOException: Incorrect AVA format

This is what it looks like with a sample command.

C:\Boomi AtomSphere\Atom - atomname\jre\bin> .\keytool.exe -genkey -dname "CN=hostname.local, OU=A.I., O=Corp, Inc., L=Aliso Viejo, S=CA, C=US" -alias Boomi -keyalg RSA -keystore "C:\Boomi AtomSphere\Atom - atomname\jre\lib\security\keystore.jks" -keysize 2048
Enter keystore password:
keytool error: java.io.IOException: Incorrect AVA format

 

This error is seen when there is an invalid character in the command. In this case, the Organization has a comma.

O=Corp, Inc.

In order to correct this, you will need to add an escape character to the command. This escape character is a backslash (\). The keytool command to make this work is shown below.

C:\Boomi AtomSphere\Atom - atomname\jre\bin> .\keytool.exe -genkey -dname "CN=hostname.local, OU=A.I., O=Corp\, Inc., L=Aliso Viejo, S=CA, C=US" -alias Boomi -keyalg RSA -keystore "C:\Boomi AtomSphere\Atom - atomname\jre\lib\security\keystore.jks" -keysize 2048

Notice the Organization is now defined as follows.

 

O=Corp\, Inc.

 

Attachments

    Outcomes