Commit b2339a18 authored by Pavel Spirek's avatar Pavel Spirek
Browse files

Merge branch 'master' of gitlab.labs.nic.cz:labs/jetconf

parents 84177162 356c2f41
#!/bin/sh
if [ "$1" = "" ]; then
echo "Usage:" $0 "out_filename_prefix"
echo "Usage:" $0 "email_address"
exit 1
fi
......@@ -8,13 +8,13 @@ echo -e "\n1. Generating private key:"
openssl genrsa -out $1.key 2048
echo -e "\n2. Generating CSR:"
openssl req -new -key $1.key -out $1.req -subj "/CN=Test/emailAddress=$1@mail.cz"
openssl req -new -key $1.key -out $1.req -subj "/CN=Test/emailAddress=$1"
echo -e "\n3. Signing CSR with test CA's key:"
openssl x509 -req -in $1.req -CAcreateserial -CA ca.pem -CAkey ca.key -days 3650 -out $1.pem
rm $1.req
echo -e "\n4. Creating $1_curl.pem (concaterated certificate and key for curl etc.):"
echo -e "\n4. Creating $1_curl.pem (certificate & key):"
cat $1.pem > $1_curl.pem
cat $1.key >> $1_curl.pem
......
File mode changed from 100644 to 100755
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment