mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Sertificate readme refactor and updated application-example file
This commit is contained in:
parent
efcbe1ad99
commit
f863ca03a0
2 changed files with 14 additions and 10 deletions
|
@ -16,6 +16,16 @@ Private key and certificate must be packaged to pkcs12 and added to user browser
|
|||
|
||||
### Registry setup
|
||||
|
||||
Setup CA directory in shared directory:
|
||||
|
||||
cd /home/registry/registry/shared
|
||||
mkdir ca ca/certs ca/crl ca/newcerts ca/private ca/csrs
|
||||
cd ca
|
||||
chmod 700 private
|
||||
touch index.txt
|
||||
echo 1000 > serial
|
||||
echo 1000 > crlnumber
|
||||
|
||||
Configure OpenSSL:
|
||||
|
||||
sudo cp /etc/ssl/openssl.cnf /etc/ssl/openssl.cnf.bak
|
||||
|
@ -53,16 +63,6 @@ Make sure the following options are in place:
|
|||
basicConstraints = CA:true # around line nr 240
|
||||
keyUsage = cRLSign, keyCertSign # around line nr 245
|
||||
|
||||
Setup CA directory in shared directory:
|
||||
|
||||
cd /home/registry/registry/shared
|
||||
mkdir ca ca/certs ca/crl ca/newcerts ca/private ca/csrs
|
||||
cd ca
|
||||
chmod 700 private
|
||||
touch index.txt
|
||||
echo 1000 > serial
|
||||
echo 1000 > crlnumber
|
||||
|
||||
Generate the root key and remember your password, you need it later in application.yml:
|
||||
|
||||
openssl genrsa -aes256 -out private/ca.key.pem 4096
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue