summaryrefslogtreecommitdiffstats
path: root/tools/gnutls/cert-gen-selfsigned
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-07-15 16:11:05 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-07-15 16:11:05 +0200
commit188e4f39fd3c267159c32f750f1da0bc74db910e (patch)
treef19a40ae560d8e80acf6965f235dca0fcda05798 /tools/gnutls/cert-gen-selfsigned
parent19864adc4799ce57204fdabb7049e8ec856ed452 (diff)
parent38cdfcfbe1c1ed6aa4a22623afc43d199bc5f7a8 (diff)
downloadrsyslog-188e4f39fd3c267159c32f750f1da0bc74db910e.tar.gz
rsyslog-188e4f39fd3c267159c32f750f1da0bc74db910e.tar.xz
rsyslog-188e4f39fd3c267159c32f750f1da0bc74db910e.zip
Merge branch 'master' into beta
Diffstat (limited to 'tools/gnutls/cert-gen-selfsigned')
-rwxr-xr-xtools/gnutls/cert-gen-selfsigned6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/gnutls/cert-gen-selfsigned b/tools/gnutls/cert-gen-selfsigned
new file mode 100755
index 00000000..e1c25386
--- /dev/null
+++ b/tools/gnutls/cert-gen-selfsigned
@@ -0,0 +1,6 @@
+#/bin/sh
+# generates a self-signed certificate and key suitable for use with rsyslog
+# 2008-05-08, rgerhards
+# TODO: make this a robust shell script
+certtool --generate-privkey --outfile $1-key.pem
+certtool --generate-self-signed --load-privkey $1-key.pem --outfile $1-cert.pem