tlstun

simple go program to add tls support to other listeners
git clone https://git.parazyd.org/tlstun
Log | Files | Refs | README | LICENSE

commit a4555c61fc901f47d7478ff19119f45a1ebd349f
parent 22c46c990be808311cc4e59252e533cd854ed520
Author: parazyd <parazyd@dyne.org>
Date:   Sun, 25 Apr 2021 23:47:03 +0200

Add script for generating selfsigned certificates.

Diffstat:
Mcontrib/README.md | 6++++++
Acontrib/tls-gen-selfsign-cert.sh | 6++++++
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/contrib/README.md b/contrib/README.md @@ -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. diff --git a/contrib/tls-gen-selfsign-cert.sh b/contrib/tls-gen-selfsign-cert.sh @@ -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