From cb33cbc31a461b295f2eb8f3a45932e67403ff51 Mon Sep 17 00:00:00 2001 From: Michiel de Jong Date: Wed, 8 Oct 2014 10:50:15 +0100 Subject: [PATCH] check/approve cert moved to dev-scripts / orchestration --- scripts/check-cert.sh | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100755 scripts/check-cert.sh diff --git a/scripts/check-cert.sh b/scripts/check-cert.sh deleted file mode 100755 index 035de47..0000000 --- a/scripts/check-cert.sh +++ /dev/null @@ -1,37 +0,0 @@ -if [ -f /data/per-user/$1/tls.cert ]; then -if [ -f /data/per-user/$1/tls.key ]; then -if [ -f /data/per-user/$1/chain.pem ]; then - echo head -5 /data/per-user/$1/tls.cert: - head -5 /data/per-user/$1/tls.cert - echo head -5 /data/per-user/$1/chain.pem: - head -5 /data/per-user/$1/chain.pem - echo head -5 /data/per-user/$1/tls.key: - head -5 /data/per-user/$1/tls.key - - echo Some information about: /data/per-user/$1/tls.cert: - openssl x509 -text -in /data/per-user/$1/tls.cert - - echo Some information about: /data/per-user/$1/chain.pem: - openssl x509 -text -in /data/per-user/$1/chain.pem - - echo Some information about: /data/per-user/$1/tls.key: - openssl rsa -text -in /data/per-user/$1/tls.key - - if [ -f /data/per-user/$1/combined.pem ]; then - echo combined.pem exists! Please make sure it\'s tls.cert + chain.pem + tls.key \(in that order\) - else - echo Generating /data/per-user/$1/combined.pem: - cat /data/per-user/$1/tls.cert /data/per-user/$1/chain.pem /data/per-user/$1/tls.key > /data/per-user/$1/combined.pem - fi - - echo Running a test server on port 4433 on this server now \(please use your browser to check\): - openssl s_server -cert /data/per-user/$1/combined.pem -www -else - echo Files /data/per-user/$1/{tls.cert,tls.key,chain.pem} not found -fi -else - echo Files /data/per-user/$1/{tls.cert,tls.key,chain.pem} not found -fi -else - echo Files /data/per-user/$1/{tls.cert,tls.key,chain.pem} not found -fi