geomyidae

A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log | Files | Refs | README | LICENSE

tls-gen-selfsign-cert.sh (358B)


      1 #!/bin/sh
      2 
      3 keyfile="geomyidae.key"
      4 csrfile="geomyidae.csr"
      5 certfile="geomyidae.crt"
      6 
      7 # Generate the private key.
      8 openssl genrsa -out "${keyfile}" 4096
      9 # Generate signing request.
     10 openssl req -new -key "${keyfile}" -out "${csrfile}"
     11 # Sign the request ourself.
     12 openssl x509 -sha256 -req -days 365 -in "${csrfile}" \
     13 	-signkey "${keyfile}" -out "${certfile}"
     14