Fixing StartSSL certificate installation
This commit is contained in:
parent
d7fa67fafe
commit
0117073356
|
@ -6493,10 +6493,15 @@ cat /etc/ssl/requests/$HOSTNAME.csr
|
||||||
|
|
||||||
You can then click on "skip" within the StartSSL certificates wizard and copy and paste the encrypted request into the text entry box. A confirmation will be emailed back to you normally within a few hours.
|
You can then click on "skip" within the StartSSL certificates wizard and copy and paste the encrypted request into the text entry box. A confirmation will be emailed back to you normally within a few hours.
|
||||||
|
|
||||||
Then on the BBB.
|
Log into your StartSSL account and select *Retrieve Certificate* from the *Tool Box* tab. Copy the text.
|
||||||
|
|
||||||
|
#+BEGIN_SRC: bash
|
||||||
|
emacs /etc/ssl/certs/$HOSTNAME.crt
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
Paste the public key, then save and exit. Then on the BBB.
|
||||||
|
|
||||||
#+BEGIN_SRC: bash
|
#+BEGIN_SRC: bash
|
||||||
mv /etc/ssl/requests/$HOSTNAME.csr /etc/ssl/certs/$HOSTNAME.crt
|
|
||||||
mkdir /etc/ssl/roots
|
mkdir /etc/ssl/roots
|
||||||
mkdir /etc/ssl/chains
|
mkdir /etc/ssl/chains
|
||||||
wget "http://www.startssl.com/certs/ca.pem" --output-document="/etc/ssl/roots/startssl-root.ca"
|
wget "http://www.startssl.com/certs/ca.pem" --output-document="/etc/ssl/roots/startssl-root.ca"
|
||||||
|
@ -6522,6 +6527,14 @@ chmod -R 400 /etc/ssl/backups/certs/*
|
||||||
chmod -R 400 /etc/ssl/backups/private/*
|
chmod -R 400 /etc/ssl/backups/private/*
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
Remove the certificate password, so if the server is rebooted then it won't wait indefinitely for a non-existant keyboard user to type in a password.
|
||||||
|
|
||||||
|
#+BEGIN_SRC: bash
|
||||||
|
openssl rsa -in /etc/ssl/private/$HOSTNAME.key -out /etc/ssl/private/$HOSTNAME.new.key
|
||||||
|
cp /etc/ssl/private/$HOSTNAME.new.key /etc/ssl/private/$HOSTNAME.key
|
||||||
|
shred -zu /etc/ssl/private/$HOSTNAME.new.key
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
Now visit your web site at https://mydomainname.com and you should notice that there is no certificate warning displayed. You will now be able to install systems which don't allow the use of self-signed certificates, such as [[https://redmatrix.me/&JS=1][Red Matrix]].
|
Now visit your web site at https://mydomainname.com and you should notice that there is no certificate warning displayed. You will now be able to install systems which don't allow the use of self-signed certificates, such as [[https://redmatrix.me/&JS=1][Red Matrix]].
|
||||||
|
|
||||||
* Deprecated
|
* Deprecated
|
||||||
|
|
Loading…
Reference in New Issue