summaryrefslogtreecommitdiff
path: root/openssl-freefilesync/renew-dummy-cert
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-10-10 11:40:39 -0400
committerB Stack <bgstack15@gmail.com>2019-10-10 11:40:39 -0400
commitd3505e0bcb1d6015c6e70104a2b64dd347565ad1 (patch)
tree9167181d853d25a3e57645aca40155990124905f /openssl-freefilesync/renew-dummy-cert
parentWIP: ffs for el8 rc1 (diff)
downloadstackrpms-d3505e0bcb1d6015c6e70104a2b64dd347565ad1.tar.gz
stackrpms-d3505e0bcb1d6015c6e70104a2b64dd347565ad1.tar.bz2
stackrpms-d3505e0bcb1d6015c6e70104a2b64dd347565ad1.zip
moved ffs deps to new repo
Diffstat (limited to 'openssl-freefilesync/renew-dummy-cert')
-rwxr-xr-xopenssl-freefilesync/renew-dummy-cert39
1 files changed, 0 insertions, 39 deletions
diff --git a/openssl-freefilesync/renew-dummy-cert b/openssl-freefilesync/renew-dummy-cert
deleted file mode 100755
index 92e271c..0000000
--- a/openssl-freefilesync/renew-dummy-cert
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-if [ $# -eq 0 ]; then
- echo $"Usage: `basename $0` filename" 1>&2
- exit 1
-fi
-
-PEM=$1
-REQ=`/bin/mktemp /tmp/openssl.XXXXXX`
-KEY=`/bin/mktemp /tmp/openssl.XXXXXX`
-CRT=`/bin/mktemp /tmp/openssl.XXXXXX`
-NEW=${PEM}_
-
-trap "rm -f $REQ $KEY $CRT $NEW" SIGINT
-
-if [ ! -f $PEM ]; then
- echo "$PEM: file not found" 1>&2
- exit 1
-fi
-
-umask 077
-
-OWNER=`ls -l $PEM | awk '{ printf "%s.%s", $3, $4; }'`
-
-openssl rsa -inform pem -in $PEM -out $KEY
-openssl x509 -x509toreq -in $PEM -signkey $KEY -out $REQ
-openssl x509 -req -in $REQ -signkey $KEY -days 365 \
- -extfile /etc/pki/tls/openssl.cnf -extensions v3_ca -out $CRT
-
-(cat $KEY ; echo "" ; cat $CRT) > $NEW
-
-chown $OWNER $NEW
-
-mv -f $NEW $PEM
-
-rm -f $REQ $KEY $CRT
-
-exit 0
-
bgstack15