Archive of certificates
This commit is contained in:
parent
e88da5662e
commit
33e3898932
|
@ -2635,15 +2635,16 @@ Enter the following, changing the country code and location as needed:
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
HOSTNAME=$1
|
HOSTNAME=$1
|
||||||
COUNTRY_CODE="GB"
|
COUNTRY_CODE="US"
|
||||||
AREA="Greater Manchester"
|
AREA="Free Speech Zone"
|
||||||
LOCATION="Manchester"
|
LOCATION="Freedomville"
|
||||||
ORGANISATION="Freedombone"
|
ORGANISATION="Freedombone"
|
||||||
|
UNIT="Freedombone Unit"
|
||||||
|
|
||||||
openssl req \
|
openssl req \
|
||||||
-x509 -nodes -days 3650 \
|
-x509 -nodes -days 3650 \
|
||||||
-subj "/O=$ORGANISATION/C=$COUNTRY_CODE/ST=$AREA/L=$LOCATION/CN=$HOSTNAME" \
|
-subj "/O=$ORGANISATION/OU=$UNIT/C=$COUNTRY_CODE/ST=$AREA/L=$LOCATION/CN=$HOSTNAME" \
|
||||||
-newkey rsa:1024 \
|
-newkey rsa:2048 \
|
||||||
-keyout /etc/ssl/private/$HOSTNAME.key \
|
-keyout /etc/ssl/private/$HOSTNAME.key \
|
||||||
-out /etc/ssl/certs/$HOSTNAME.crt
|
-out /etc/ssl/certs/$HOSTNAME.crt
|
||||||
chmod 400 /etc/ssl/private/$HOSTNAME.key
|
chmod 400 /etc/ssl/private/$HOSTNAME.key
|
||||||
|
@ -2657,6 +2658,7 @@ fi
|
||||||
cp /etc/ssl/certs/$HOSTNAME.crt /etc/ssl/mycerts
|
cp /etc/ssl/certs/$HOSTNAME.crt /etc/ssl/mycerts
|
||||||
# Create a bundle of your certificates
|
# Create a bundle of your certificates
|
||||||
cat /etc/ssl/mycerts/*.crt > /etc/ssl/freedombone-bundle.crt
|
cat /etc/ssl/mycerts/*.crt > /etc/ssl/freedombone-bundle.crt
|
||||||
|
tar -czvf /etc/ssl/freedombone-certs.tar.gz /etc/ssl/mycerts/*.crt
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Save and exit.
|
Save and exit.
|
||||||
|
@ -8252,6 +8254,7 @@ And also add it to the overall bundle of certificates for the BBB. This will all
|
||||||
mkdir /etc/ssl/mycerts
|
mkdir /etc/ssl/mycerts
|
||||||
cp /etc/ssl/certs/$HOSTNAME.bundle.crt /etc/ssl/mycerts
|
cp /etc/ssl/certs/$HOSTNAME.bundle.crt /etc/ssl/mycerts
|
||||||
cat /etc/ssl/mycerts/*.crt > /etc/ssl/freedombone-bundle.crt
|
cat /etc/ssl/mycerts/*.crt > /etc/ssl/freedombone-bundle.crt
|
||||||
|
tar -czvf /etc/ssl/freedombone-certs.tar.gz /etc/ssl/mycerts/*.crt
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Edit your configuration file.
|
Edit your configuration file.
|
||||||
|
|
Loading…
Reference in New Issue