From eb6103f19ac6d54b3c482c5004f742ff8a207740 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 4 Mar 2018 11:40:54 +0000 Subject: [PATCH] Deprecate cert bundle --- src/freedombone-addcert | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/freedombone-addcert b/src/freedombone-addcert index dc16d71a..7f23c0c7 100755 --- a/src/freedombone-addcert +++ b/src/freedombone-addcert @@ -170,10 +170,6 @@ if ! which openssl > /dev/null ;then exit 5689 fi -if [ ! -d /etc/ssl/mycerts ]; then - mkdir /etc/ssl/mycerts -fi - CERTFILE=$HOSTNAME function remove_cert_letsencrypt { @@ -317,7 +313,6 @@ function add_cert_selfsigned { -out "/etc/ssl/certs/${CERTFILE}.crt" chmod 400 "/etc/ssl/private/${CERTFILE}.key" chmod 640 "/etc/ssl/certs/${CERTFILE}.crt" - cp "/etc/ssl/certs/${CERTFILE}.crt" "/etc/ssl/mycerts" if [ "$PIN_CERTS" ]; then if ! "${PROJECT_NAME}-pin-cert" "$CERTFILE"; then @@ -341,12 +336,6 @@ function restart_web_server { fi } -function make_cert_bundle { - # Create a bundle of your certificates - cat /etc/ssl/mycerts/*.crt /etc/ssl/mycerts/*.pem > /etc/ssl/${PROJECT_NAME}-bundle.crt - tar -czvf /etc/ssl/${PROJECT_NAME}-certs.tar.gz /etc/ssl/mycerts/*.crt /etc/ssl/mycerts/*.pem -} - function create_cert { if [ "$remove_cert" ]; then remove_cert_letsencrypt @@ -363,6 +352,5 @@ function create_cert { create_cert generate_dh_params restart_web_server -make_cert_bundle exit 0