nonhttpd

A httpd serving nothing.
git clone git://r-36.net/nonhttpd
Log | Files | Refs | README | LICENSE

gencert.sh (258B)


      1 #!/bin/sh
      2 
      3 if [ $# -gt 0 ];
      4 then
      5 	KEY="$1"
      6 else
      7 	KEY="nonhttpd"
      8 fi
      9 
     10 openssl genrsa -out "${KEY}.key" 1024
     11 openssl req -new -key "${KEY}.key" -x509 -days 3653 -out "${KEY}.crt"
     12 cat "${KEY}.key" "${KEY}.crt" > "${KEY}.pem"
     13 chmod 600 "${KEY}.key" "${KEY}.pem"
     14