users@glassfish.java.net

Re: certificate alias not found

From: <glassfish_at_javadesktop.org>
Date: Tue, 14 Jul 2009 10:56:54 PDT

So I've done exactly as posted. I did not however enable my appserver to use SSL and the certificate yet, but I did have to restart my appserver because of other updates. When I tried to restart it, it would not come up. Below is the log error that is generated. I'm assuming my problem is now related to the keystore or truststore passwords. If I changed the passwords from their default "changeit", how do I set up the appserver to use the new passwords? Do I have to set it up in the domain.xml somewhere?

[code]
Exception in thread "main" [#|2009-07-13T17:07:06.283-0400|WARNING|sun-appserver-pe8.1_02|javax.enterprise.system.stream.err|_ThreadID=10;|java.lang.ExceptionInInitializerError
        at com.sun.enterprise.security.SecurityLifecycle.onInitialization(SecurityLifecycle.java:59)
        at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:215)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:284)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
Caused by: java.lang.IllegalStateException: Keystore was tampered with, or password was incorrect
        at com.sun.enterprise.security.SecuritySupportImpl.loadStores(SecuritySupportImpl.java:80)
        at com.sun.enterprise.security.SecuritySupportImpl.<init>(SecuritySupportImpl.java:48)
        at com.sun.enterprise.security.SecuritySupportImpl.<init>(SecuritySupportImpl.java:43)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at com.sun.enterprise.pluggable.PluggableFeatureFactoryBaseImpl.invoke(PluggableFeatureFactoryBaseImpl.java:53)
        at $Proxy0.getSecuritySupport(Unknown Source)
        at com.sun.enterprise.security.SecurityUtil.getSecuritySupport(SecurityUtil.java:338)
        at com.sun.enterprise.security.SSLUtils.<clinit>(SSLUtils.java:72)
        ... 4 more
[/code]



thanks
[Message sent by forum member 'black_lotus' (black_lotus)]

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