tAdd script for generating selfsigned certificates. - tlstun - simple go program to add tls support to other listeners (HTM) git clone https://git.parazyd.org/tlstun (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit a4555c61fc901f47d7478ff19119f45a1ebd349f (DIR) parent 22c46c990be808311cc4e59252e533cd854ed520 (HTM) Author: parazyd <parazyd@dyne.org> Date: Sun, 25 Apr 2021 23:47:03 +0200 Add script for generating selfsigned certificates. Diffstat: M contrib/README.md | 6 ++++++ A contrib/tls-gen-selfsign-cert.sh | 6 ++++++ 2 files changed, 12 insertions(+), 0 deletions(-) --- (DIR) diff --git a/contrib/README.md b/contrib/README.md t@@ -9,3 +9,9 @@ tlstun.initd and tlstun.confd `tlstun.initd` and `tlstun.confd` are an OpenRC initscript that can be used and symlinked into multiple instances to use tlstun for various services. + + +tls-gen-selfsign-cert.sh +------------------------- + +A simple script using `openssl` to generate a selfsigned certificate. (DIR) diff --git a/contrib/tls-gen-selfsign-cert.sh b/contrib/tls-gen-selfsign-cert.sh t@@ -0,0 +1,6 @@ +#!/bin/sh +keyfile="server-key.pem" +certfile="server.pem" + +openssl genrsa -out "$keyfile" 4096 +openssl req -new -x509 -key "$keyfile" -out "$certfile" -days 365