diff options
author | B Stack <bgstack15@gmail.com> | 2019-10-18 12:39:23 +0000 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2019-10-18 12:39:23 +0000 |
commit | d759954c9cb89dc6c98d8800899e2925660ad08c (patch) | |
tree | 30a4c7b0cb1c9eff135dae8c5c59ab5cb238ddfc /openssl-freefilesync/renew-dummy-cert | |
parent | Merge branch 'oddjob-mkhomedir' into 'master' (diff) | |
parent | waterfox: el8 disable system_webp (diff) | |
download | stackrpms-d759954c9cb89dc6c98d8800899e2925660ad08c.tar.gz stackrpms-d759954c9cb89dc6c98d8800899e2925660ad08c.tar.bz2 stackrpms-d759954c9cb89dc6c98d8800899e2925660ad08c.zip |
Merge branch 'centos-8' into 'master'
Add Centos 8 support
Closes #12
See merge request bgstack15/stackrpms!93
Diffstat (limited to 'openssl-freefilesync/renew-dummy-cert')
-rwxr-xr-x | openssl-freefilesync/renew-dummy-cert | 39 |
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 - |