users@glassfish.java.net

Re: Problem with importing keys into glassfish kestore and trust store.

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Tue, 03 Apr 2007 17:43:07 -0700

legolas wood wrote On 04/03/07 03:01 PM,:

> Hi
> Thanks, can you please tell me how i can change *changeit* to some
> other pass?


Use keytool's "-keypasswd" option and provide both the old and new
passwords:

keytool -keypasswd [-v] [-alias <alias>]
                                   [-keypass <old_keypass>] [-new
<new_keypass>]
                                   [-keystore <keystore>] [-storepass
<storepass>]
                                   [-storetype <storetype>]
[-providerName <name>]
                                   [-providerClass <provider_class_name>
[-providerArg <arg>]] ...

See

  http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/keytool.html

for more info.


Jan


>
> Thanks
>
> kedar wrote:
>
>> The storepass should be "changeit".
>>
>> legolas wood wrote:
>>
>>> Hi
>>> Thank you for reading my post.
>>> I am trying to import some keys into glassfish keystore and trust
>>> store but I can not do it.
>>> it return an error like:
>>>
>>>
>>> \domains\domain1\config>keytool -import -keypass adminadmin
>>> -storepass adminadmin -file E:\certs\server.der
>>> -alias serverkey -keystore keystore.jks
>>> keytool error: java.io.IOException: Keystore was tampered with, or
>>> password was incorrect
>>>
>>>
>>> Meanwhile I am sure that Glassfish admin password is sets to
>>> *adminadmin* , and my cert password is *adminadmin* , what is wrong
>>> here?
>>>
>>> What password I should use as keystore and cacerts storepass?
>>>
>>> Thanks
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>