users@glassfish.java.net

Re: keytool error: java.io.IOException: Invalid keystore format

From: <glassfish_at_javadesktop.org>
Date: Thu, 02 Jul 2009 11:37:19 PDT

Here are the results of -DDebug. We ran asadmin after the initial install failed to create domain1. We are intalling on Solaris 10 on a Sparc 5220.

myserver#./asadmin create-domain --user admin --adminport 8300 --savemasterpassword=true dscc
++++++++++++++++++++++++++++ Command loaded from file and it is create-domain 1 | {adminport string null,adminuser string null,adminpassword string null,user string u, null,password string w, null,interactive boolean I, true,profile string null,template string null,terse boolean t, false,echo boolean e, false,instanceport string null,domainproperties string null,portbase string null,path string null,domaindir string null,passwordfile string null,checkports boolean true,masterpassword string null,savemasterpassword boolean false,savelogin boolean false,} | } | | } | create-domain [--user admin] [--adminport port_number] [--terse=false] [--echo=false] [--interactive=true] [--domaindir domain_directory] [--profile profile_name] [--template domain_template] [--passwordfile filename ] [--instanceport port_number] [--savemasterpassword=false] [--domainproperties (name=value)[:name=value]*] [--portbase portbase] [--savelogin=false] [--checkports=true] domain_name {}
basePackage: com.sun.enterprise.cli.commands
propertyFile: LocalStrings
basePackage: com.sun.enterprise.cli.commands
propertyFile: LocalStrings
**** insert Default Options interactive true
**** insert Default Options terse false
**** insert Default Options echo false
**** insert Default Options checkports true
**** insert Default Options savelogin false
Port =8300
Reading asadminenv.conf file
asadminenv.conf: set the following options: profile=developer
asadminenv.conf: set the following options: secure=false
asadminenv.conf: set the following options: port=4848
Please enter the admin password>
Please enter the admin password again>
Please enter the master password [Enter to accept the default]:>
Please enter the master password again [Enter to accept the default]:>
domainName = dscc
Using port 8300 for Admin.
Using default port 8080 for HTTP Instance.
Using default port 7676 for JMS.
Using default port 3700 for IIOP.
Using default port 8181 for HTTP_SSL.
Using default port 3820 for IIOP_SSL.
Using default port 3920 for IIOP_MUTUALAUTH.
Using default port 8686 for JMX_ADMIN.
Domain being created with profile:developer, as specified by variable AS_ADMIN_PROFILE in configuration file.
Security Store uses: JKS

**** Executing command:
/vend/SUNWappserver/jdk1.5.0_19/bin/keytool
-genkey
-keyalg
RSA
-keystore
/vend/SUNWappserver/domains/dscc/config/keystore.jks
-alias
s1as
-dname
CN=hellhole.acs.utah.edu,OU=Sun GlassFish Enterprise Server,O=Sun Microsystems,L=Santa Clara,ST=California,C=US
-validity
3650
-keypass
changeit
-storepass
changeit
-J-Dsun.security.internal.keytool.skid

**** Executing command:
/vend/SUNWappserver/jdk1.5.0_19/bin/keytool
-export
-keystore
/vend/SUNWappserver/domains/dscc/config/keystore.jks
-alias
s1as
-file
/vend/SUNWappserver/domains/dscc/config/s1as.cer
InputLine ->changeit<-

**** Executing command:
/vend/SUNWappserver/jdk1.5.0_19/bin/keytool
-import
-noprompt
-keystore
/vend/SUNWappserver/domains/dscc/config/cacerts.jks
-alias
s1as
-file
/vend/SUNWappserver/domains/dscc/config/s1as.cer
InputLine ->changeit<-

**** Executing command:
/vend/SUNWappserver/jdk1.5.0_19/bin/keytool
-delete
-keystore
/.asadmintruststore
-alias
/vend/SUNWappserver/domains/dscc
InputLine ->changeit<-
InputLine ->changeit<-

**** Executing command:
/vend/SUNWappserver/jdk1.5.0_19/bin/keytool
-import
-noprompt
-keystore
/.asadmintruststore
-alias
/vend/SUNWappserver/domains/dscc
-file
/vend/SUNWappserver/domains/dscc/config/s1as.cer
InputLine ->changeit<-
InputLine ->changeit<-
keytool error: java.io.IOException: Invalid keystore format
 
com.sun.enterprise.cli.framework.CommandException: CLI130 Could not create domain, dscc
        at com.sun.enterprise.cli.commands.CreateDomainCommand.runCommand(CreateDomainCommand.java:315)
        at com.sun.enterprise.cli.framework.CLIMain.invokeCommand(CLIMain.java:171)
        at com.sun.enterprise.cli.framework.CLIMain.main(CLIMain.java:79)
Caused by: com.sun.enterprise.admin.servermgmt.DomainException: keytool error: java.io.IOException: Invalid keystore format
 
        at com.sun.enterprise.admin.servermgmt.pe.PEDomainsManager.createDomain(PEDomainsManager.java:189)
        at com.sun.enterprise.ee.admin.servermgmt.EEDomainsManager.createDomain(EEDomainsManager.java:170)
        at com.sun.enterprise.cli.commands.CreateDomainCommand.create(CreateDomainCommand.java:489)
        at com.sun.enterprise.cli.commands.CreateDomainCommand.runCommand(CreateDomainCommand.java:310)
        ... 2 more
Caused by: com.sun.enterprise.admin.servermgmt.RepositoryException: keytool error: java.io.IOException: Invalid keystore format
 
        at com.sun.enterprise.admin.servermgmt.KeystoreManager$KeytoolExecutor.execute(KeystoreManager.java:127)
        at com.sun.enterprise.admin.servermgmt.KeystoreManager.addToAsadminTrustStore(KeystoreManager.java:252)
        at com.sun.enterprise.admin.servermgmt.KeystoreManager.createTrustStore(KeystoreManager.java:321)
        at com.sun.enterprise.admin.servermgmt.KeystoreManager.createSSLCertificateDatabase(KeystoreManager.java:176)
        at com.sun.enterprise.ee.admin.servermgmt.EEDomainsManager.createSSLCertificateDatabase(EEDomainsManager.java:239)
        at com.sun.enterprise.admin.servermgmt.pe.PEDomainsManager.createDomain(PEDomainsManager.java:171)
        ... 5 more
Caused by: com.sun.enterprise.util.ExecException: keytool error: java.io.IOException: Invalid keystore format
 
        at com.sun.enterprise.util.ProcessExecutor.execute(ProcessExecutor.java:341)
        at com.sun.enterprise.util.ProcessExecutor.execute(ProcessExecutor.java:246)
        at com.sun.enterprise.util.ProcessExecutor.execute(ProcessExecutor.java:229)
        at com.sun.enterprise.admin.servermgmt.KeystoreManager$KeytoolExecutor.execute(KeystoreManager.java:121)
        ... 10 more

CLI130 Could not create domain, dscc
[Message sent by forum member 'bryanut' (bryanut)]

http://forums.java.net/jive/thread.jspa?messageID=353995