Skip to content
Snippets Groups Projects
Commit afe40f2b authored by Robert Speicher's avatar Robert Speicher
Browse files

Expand the SSL Cert troubleshooting documentation

parent 9d624aa8
No related branches found
No related tags found
1 merge request!237Expand the SSL Cert troubleshooting documentation
Loading
Loading
@@ -18,21 +18,42 @@ Check with browser if this is really the case.
 
## Resolution
 
We use sslmate for ordering SSL certificates, get the commandline tool via https://sslmate.com/help/install.
We use [SSLMate] for ordering SSL certificates. Get the commandline tool via
https://sslmate.com/help/install.
 
Credentials are in 1password.
Credentials are in 1Password.
 
### Buy a new certificate
```
sslmate buy about.gitlab.com
```
 
### Use rake to update vault
When asked to prove authorization, select **Add a DNS record**, and add the
provided `CNAME` entry via Route 53.
The `sslmate` client will download the key and certificate to the directory in
which the command was executed.
### Use Rake to update vault
Since we store the certificate or at least the key always in a vault, update it with the new certificate and key.
```
cd chef-repo/
rake edit_role_secrets[the_role_with_vault]
rake 'edit_role_secrets[the_role_with_vault]'
```
 
## NOTES
* For dev.gitlab.org we use the same certificate for registry so make sure you update the normal and registry certificates with the same one.
To convert the multi-line key and certificate files to a single-line string
suitable for the vault, use this command:
```
awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' the_key_file.key
```
## Notes
* For dev.gitlab.org we use the same certificate for registry so make sure you
update the normal and registry certificates with the same one.
[SSLMate]: https://sslmate.com/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment