Author |
Message
|
itsme_001 |
Posted: Fri Jul 23, 2021 7:23 am Post subject: forgot key.kdb password. how to change now |
|
|
Disciple
Joined: 02 Feb 2009 Posts: 157
|
the password for the key.kdb file is missing .. i mean forgot
How can i change it to a new password without knowing the existing one.
Have previously done that a long time back.. could not recollect the command. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jul 23, 2021 10:35 am Post subject: Re: forgot key.kdb password. how to change now |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
itsme_001 wrote: |
the password for the key.kdb file is missing .. i mean forgot
How can i change it to a new password without knowing the existing one.
Have previously done that a long time back.. could not recollect the command. |
Code: |
runmqakm -keydb -changepw -db xyz.kdb -new_pw mynewpw -stash -stashed |
No warranty. Better test first on a copy...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
gbaddeley |
Posted: Sat Jul 24, 2021 7:56 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
If you have lost the password or the stash file for a CMS KDB, there is no recourse. You will have to created a new KDB from scratch with a new password and add all the certs.
We had to do that once Just once! _________________ Glenn |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Jul 24, 2021 11:44 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
gbaddeley wrote: |
If you have lost the password or the stash file for a CMS KDB, there is no recourse. You will have to created a new KDB from scratch with a new password and add all the certs.
We had to do that once Just once! |
You mean to say: have lost the password AND the stash file. If you have either one of those it is easy to either create the stash file or change the stash file and password when just having the stash file...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
itsme_001 |
Posted: Tue Jul 27, 2021 3:09 am Post subject: Re: forgot key.kdb password. how to change now |
|
|
Disciple
Joined: 02 Feb 2009 Posts: 157
|
fjb_saper wrote: |
itsme_001 wrote: |
the password for the key.kdb file is missing .. i mean forgot
How can i change it to a new password without knowing the existing one.
Have previously done that a long time back.. could not recollect the command. |
Code: |
runmqakm -keydb -changepw -db xyz.kdb -new_pw mynewpw -stash -stashed |
No warranty. Better test first on a copy...
Enjoy  |
Thank you. It worked... forgot a syntax in it.
how do I run the same for a .jks cert file? |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Jul 27, 2021 4:49 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Moved to Security forum. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jul 27, 2021 9:15 am Post subject: Re: forgot key.kdb password. how to change now |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
itsme_001 wrote: |
fjb_saper wrote: |
Code: |
runmqakm -keydb -changepw -db xyz.kdb -new_pw mynewpw -stash -stashed |
No warranty. Better test first on a copy...
Enjoy  |
Thank you. It worked... forgot a syntax in it.
how do I run the same for a .jks cert file? |
For a jks file have you tried using runmqckm ?  _________________ MQ & Broker admin
Last edited by fjb_saper on Fri Jul 30, 2021 12:11 pm; edited 1 time in total |
|
Back to top |
|
 |
hughson |
Posted: Wed Jul 28, 2021 1:20 am Post subject: Re: forgot key.kdb password. how to change now |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
itsme_001 wrote: |
how do I run the same for a .jks cert file? |
Do you have a stash file for the JKS? I didn't think that format had stash files?
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
|