Skip to main content

Quick Notes on Self Signed Certificates

Create cert DB
./gskcmd -keydb -create -db /path/to/keydb.kdb -pw password -type cms -expire 0 -stash

Create self signed certificate
./gskcmd -cert -create -db /path/to/keydb.kdb -pw password -label SelfSignedCert -size 2048 -expire 7300 -dn "CN=myserver.com, O=MyCompany, OU=MyDepartment, L=MyCity, ST=MyState, C=MyCountry"

Set it as default
./gskcmd -cert -setdefault -db /path/to/keydb.kdb -pw password -label SelfSignedCert

List available certificates
./gskcmd -cert -list -db /path/to/keydb.kdb -pw password

Print certificate details
./gskcmd -cert -details  -db /path/to/keydb.kdb -pw password -label SelfSignedCert

Delete certificates
./gskcmd -cert -delete -db /path/to/keydb.kdb -pw password -label SelfSignedCert

gskcmd can be located under IHS bin directory.

Simple configuration for IBM HTTP Server (IHS)
Enable following configuration under httpd.conf

LoadModule ibm_ssl_module modules/mod_ibm_ssl.so

<IfModule mod_ibm_ssl.c>
  Listen 443
  <VirtualHost *:443>
    SSLEnable
  </VirtualHost>
</IfModule>
SSLDisable
KeyFile /path/to/keydb.kdb

Comments

Popular posts from this blog

SSH connections issues

Often, I have some issues trying to access my very own server via ssh. That happens a lot when electricity goes off - yeah, electricity goes off in the XXI century. So, to make the story short... I have found that RSA host keys are some what invalid. I then deleted the file /user_folder/.ssh/know_hosts  and voila, I'm able to make connections again.

Eclipse BIRT report error

Recently I was trying to run a report in Eclipse BIRT but I was getting this error and Eclipse was closing unexpectedly. I was able to fix it after digging a little bit on what djView is. Looks like it is a report file type; I'm not pretty sure about that. ** (Eclipse:20112): DEBUG: NP_Initialize ** (Eclipse:20112): DEBUG: NP_Initialize succeeded djview: QDjViewPlugin::exec() begin No bp log location saved, using default. [000:002] Browser XEmbed support present: 1 [000:002] Browser toolkit is Gtk2. [000:002] Using Gtk2 toolkit [000:003] Warning(optionsfile.cc:47): Load: Could not open file, err=2 [000:003] No bp log location saved, using default. [000:003] Browser XEmbed support present: 1 [000:003] Browser toolkit is Gtk2. [000:004] Using Gtk2 toolkit djview: QDjViewPlugin::exec() begin ** (Eclipse:20112): DEBUG: NP_Initialize ** (Eclipse:20112): DEBUG: NP_Initialize succeeded ** (Eclipse:20112): DEBUG: NP_Initialize ** (Eclipse:20112): DEBUG: NP_Initialize suc...

Simon Says Game in a Raspberry Pi Pico

  I have finally decided to start with IoT. I know some very basics of electronic components but to be honest, it's fine if you don't know anything. I first started with Raspberry Pi Pico microcontroller (I had no idea what was that) and the way I see it is that it is an electronic piece that controls electronic components via a programming language. I suppose this is way more complex, but I guess for us this will be enough. This is an example of what I have done so far... Feel free to download MicroPython code from  my public GitHub repo . Thanks to  claib  for his interest in this project and providing the  Fritzing.png   diagram. Hope you like it.