I am attempting to create a new keystore on my CentOS 7 host, so that I can import a wildcard cert (.p7b file format) and create a new keystore.
The following is what happens when I issue the command:
[root@hostname bin]# ./keytool -import -trustcacerts -alias .my.domain.com -file wildcard_my_domain_com.p7b -keystore wildcard_my__com.jks
Enter keystore password:
Re-enter new password:
keytool error: java.lang.Exception: Input not an X.509 certificate
The .p7b file is a direct download from the CA authority's vendor. Any ideas why I might be getting this error?
Do I have to create the keystore manually before I perform an import? Or can the keytool utility create the keystore at the time of import?