summaryrefslogtreecommitdiff
path: root/psybnc/post-install
blob: b220c240531c5bea67bcb0708cc8dc727524d3fd (plain)
    1 #!/bin/sh
    2 
    3 echo "*** GENERATING SSL-KEYS FROM CERTIFICATE **"
    4 echo "* You will be prompted for Cert-Contents  *"
    5 echo "*  This Infos will be used only for SSL   *"
    6 echo "* Alter the informations to your values   *"
    7 echo "* for the sake of correct Cert-Checking   *"
    8 echo "*******************************************"
    9 echo "Generating certificate request .. "
   10 /usr/bin/openssl req -new -config ssl.cnf -out psybnc.req.pem \
   11      	-keyout psybnc.key.pem -nodes
   12 echo "Generating self-signed certificate .. "
   13 /usr/bin/openssl req -x509 -days 365 -in psybnc.req.pem \
   14      	-key psybnc.key.pem -out psybnc.cert.pem
   15 echo "Generating fingerprint .."
   16 /usr/bin/openssl x509 -subject -dates -fingerprint -noout \
   17 	-in psybnc.cert.pem
   18 
   19 cp psybnc.cert.pem /etc/psybnc/key/
   20 cp psybnc.key.pem /etc/psybnc/key/

Generated by cgit