#!/bin/sh umask 077 answers() { echo -- echo SomeState echo SomeCity echo SomeOrganization echo SomeOrganizationalUnit echo localhost.localdomain echo root@localhost.localdomain } if [ $# -eq 0 ] ; then echo $"Usage: `basename $0` filename [...]" exit 0 fi for target in $@ ; do PEM1=`/bin/mktemp /tmp/openssl.XXXXXX` PEM2=`/bin/mktemp /tmp/openssl.XXXXXX` trap "rm -f $PEM1 $PEM2" SIGINT answers | /usr/bin/openssl req -newkey rsa:2048 -keyout $PEM1 -nodes -x509 -days 365 -out $PEM2 2> /dev/null cat $PEM1 > ${target} echo "" >> ${target} cat $PEM2 >> ${target} rm -f $PEM1 $PEM2 done
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Makefile | File | 2.46 KB | 0644 |
|
ca-bundle.crt | File | 221.18 KB | 0444 |
|
ca-bundle.trust.crt | File | 493.15 KB | 0444 |
|
hmhcc472.hostpapavps.net.crt | File | 1.19 KB | 0644 |
|
localhost.crt | File | 1.42 KB | 0600 |
|
make-dummy-cert | File | 610 B | 0755 |
|
renew-dummy-cert | File | 829 B | 0755 |
|
vps.hostpapavps.net.crt | File | 1.19 KB | 0644 |
|