Introduction
Introduction Statistics Contact Development Disclaimer Help
tls-gen-selfsign-cert.sh - geomyidae - A small C-based gopherd.
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri…
Log
Files
Refs
Tags
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
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.