From da6ef7df9c8bee5ad33fa11c85bcc838aea553f3 Mon Sep 17 00:00:00 2001 From: keanuvanderbie1 <148218818+keanuvanderbie1@users.noreply.github.com> Date: Tue, 17 Dec 2024 00:02:39 +0100 Subject: [PATCH 1/3] Docker compose fix for legacy Docker users --- docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker-compose.yml b/docker-compose.yml index ce20f63c7..2598f768d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,4 @@ +version: "3" services: server: image: opensign/opensignserver:main From 1ca55716fb1049cdd0a6a3be3ce8c8004367c02a Mon Sep 17 00:00:00 2001 From: keanuvanderbie1 <148218818+keanuvanderbie1@users.noreply.github.com> Date: Tue, 17 Dec 2024 00:09:33 +0100 Subject: [PATCH 2/3] SSL gen --- ssl-generator | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 ssl-generator diff --git a/ssl-generator b/ssl-generator new file mode 100644 index 000000000..e774c12fc --- /dev/null +++ b/ssl-generator @@ -0,0 +1,42 @@ +#!/bin/bash + +create_ssl_cert() { + mkdir -p certs + + sudo apt-get install openssl -y + + CERT_FILE="certs/$FQDN.crt" + KEY_FILE="certs/$FQDN.key" + CSR_FILE="certs/$FQDN.csr" + + openssl genpkey -algorithm RSA -out "$KEY_FILE" -aes256 -pass pass:"$PASS" + + openssl req -new -key "$KEY_FILE" -out "$CSR_FILE" -passin pass:"$PASS" -subj "/CN=$FQDN" + + openssl x509 -req -in "$CSR_FILE" -signkey "$KEY_FILE" -out "$CERT_FILE" -days 365 -passin pass:"$PASS" + + echo "SSL Certificate and Key have been generated successfully!" + echo "Certificate: $CERT_FILE" + echo "Private Key: $KEY_FILE" + + rm "$CSR_FILE" +} + +read -p "Enter the Fully Qualified Domain Name (FQDN): " FQDN + +if [ -z "$FQDN" ]; then + echo "Error: You must provide a Fully Qualified Domain Name (FQDN)." + exit 1 +fi + + +read -sp "Enter a password for your SSL private key: " PASS +echo + + +if [ -z "$PASS" ]; then + echo "Error: You must provide a password." + exit 1 +fi + +create_ssl_cert From 836f485516b1242739e15c091c933ef3411a034c Mon Sep 17 00:00:00 2001 From: keanuvanderbie1 <148218818+keanuvanderbie1@users.noreply.github.com> Date: Tue, 17 Dec 2024 00:12:14 +0100 Subject: [PATCH 3/3] Remove SSL gen so single pull remains --- ssl-generator | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 ssl-generator diff --git a/ssl-generator b/ssl-generator deleted file mode 100644 index e774c12fc..000000000 --- a/ssl-generator +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -create_ssl_cert() { - mkdir -p certs - - sudo apt-get install openssl -y - - CERT_FILE="certs/$FQDN.crt" - KEY_FILE="certs/$FQDN.key" - CSR_FILE="certs/$FQDN.csr" - - openssl genpkey -algorithm RSA -out "$KEY_FILE" -aes256 -pass pass:"$PASS" - - openssl req -new -key "$KEY_FILE" -out "$CSR_FILE" -passin pass:"$PASS" -subj "/CN=$FQDN" - - openssl x509 -req -in "$CSR_FILE" -signkey "$KEY_FILE" -out "$CERT_FILE" -days 365 -passin pass:"$PASS" - - echo "SSL Certificate and Key have been generated successfully!" - echo "Certificate: $CERT_FILE" - echo "Private Key: $KEY_FILE" - - rm "$CSR_FILE" -} - -read -p "Enter the Fully Qualified Domain Name (FQDN): " FQDN - -if [ -z "$FQDN" ]; then - echo "Error: You must provide a Fully Qualified Domain Name (FQDN)." - exit 1 -fi - - -read -sp "Enter a password for your SSL private key: " PASS -echo - - -if [ -z "$PASS" ]; then - echo "Error: You must provide a password." - exit 1 -fi - -create_ssl_cert