Wednesday 11 April 2012

BM HTTP Server - Lost the stashed password

When IHS fails to start with: -

$ cat error_log

[Wed Apr 11 07:13:17 2012] [crit] SSL0104E: GSK could not initialize, Invalid password for keyfile. 
Configuration Failed

Check that you did not inadvertently delete the stashed password file, typically key.sth

If so, you can recreate the stash file as follows: -

$ cd /opt/IBM/HTTPServer/bin 
$ ./gsk7capicmd -keydb -stashpw -db /opt/IBM/HTTPServer/ssl/key.kdb -pw <PASSWORD>


which results in: -

ls -al /opt/IBM/HTTPServer/ssl/key.sth

-rw------- 1 wasadmin wasgrp 129 Apr 11 07:15 /opt/IBM/HTTPServer/ssl/key.sth

This helped: -

<snip> 
Message:SSL0104E: GSK could not initialize, Invalid password for key file.

    Reason: The password retrieved from the stash file could not open the key database file. 
    Solution: Use IKEYMAN to open the key database file and recreate the password stash file. This problem could also result from a corrupted key database file. Creating a new key database file may resolve the problem.
</snip>

http://www-01.ibm.com/software/webservers/httpservers/doc/v2047/manual/ibm/en_US/9attroub.htm

No comments:

Visual Studio Code - Wow 🙀

Why did I not know that I can merely hit [cmd] [p]  to bring up a search box allowing me to search my project e.g. a repo cloned from GitHub...