Challenge PKI : 4.2. Setup CGI

TOP / SETUP

  1. Setup CGI configuratoin file:
    To modify the CGI refering database, edit CGI configuration file (default '/var/www/cgi-bin/cpki/lib/CPKI/site_config.pl').
    
    $CPKI_CONFIG = {
    
        db = {
    
            dsn => "dbi:Pg:dbname=DBNAME",
    
            usr => "DB_USER",
    
            pw => "DB_PASSWORD"
    
        }
    
    };
    
    
  2. Click this link then you see the page like following if you install correctly.

    When you get database error, please check database access permission. (i.e. /var/lib/pgsql/data/pg_hba.conf or GRANT settings or database users.)
  3. When you want to handle different testcase sets at the same time, you can copy CGI any where CGI execution is available. For example do as follows.
    
    % cp -r /var/www/cgi-bin/cpki /var/www/cgi-bin/cpki2
    
    % EDIT refering DB in /var/www/cgi-bin/cpki2/lib/CPKI/site_config.pl . 
    
    
    Then you will see other testcase set with 'http://HOST/cgi-bin/cpki2/cpki_index.cgi' .

JNSA/IPA Challenge PKI Test Suite