ca fix
This commit is contained in:
parent
611e62d266
commit
c1f35d2587
2 changed files with 2 additions and 5 deletions
|
@ -6,11 +6,11 @@
|
|||
trap '' SIGINT SIGTERM
|
||||
rm /etc/nginx/sites-enabled/default
|
||||
tar -xzf /root/deployment.tar.gz -C /root
|
||||
openssl genrsa -out /root/ca.key 2048
|
||||
openssl genrsa -out /root/ca.key 4096
|
||||
chmod 400 /root/ca.key
|
||||
mkdir -p /etc/ssl/certs/
|
||||
mkdir -p /etc/ssl/private/
|
||||
openssl req -x509 -new -nodes -key /root/ca.key -sha256 -days 1024 -out /etc/ssl/certs/ca.crt -config /mnt/root/openssl.cnf -extensions v3_ca
|
||||
openssl req -x509 -new -nodes -key /root/ca.key -sha256 -days 1024 -out /etc/ssl/certs/ca.crt -config /root/ca.cnf
|
||||
cp /etc/ssl/certs/ca.crt /root
|
||||
cp /etc/ssl/certs/ca.crt /usr/local/share/ca-certificates/
|
||||
chown -R www-data:www-data /etc/ssl/private/
|
||||
|
|
|
@ -11,6 +11,3 @@ L = Zurich
|
|||
O = InterstellarNet
|
||||
OU = NONE
|
||||
CN = INTERSTELLAR
|
||||
|
||||
[ req_ext ]
|
||||
subjectAltName = @alt_names
|
Loading…
Reference in a new issue