trusted ca on server
This commit is contained in:
parent
3f56ae6a63
commit
19c974e083
1 changed files with 2 additions and 0 deletions
|
@ -30,9 +30,11 @@ mkdir -p /mnt/etc/ssl/certs/
|
||||||
mkdir -p /mnt/etc/ssl/private/
|
mkdir -p /mnt/etc/ssl/private/
|
||||||
chroot /mnt /bin/bash -c "openssl req -x509 -new -nodes -key /root/ca.key -sha256 -days 1024 -out /etc/ssl/certs/ca.crt -subj '/C=CH/ST=Zurich/L=Zurich/O=InterstellarNet/OU=NONE/CN=INTERSTELLAR'"
|
chroot /mnt /bin/bash -c "openssl req -x509 -new -nodes -key /root/ca.key -sha256 -days 1024 -out /etc/ssl/certs/ca.crt -subj '/C=CH/ST=Zurich/L=Zurich/O=InterstellarNet/OU=NONE/CN=INTERSTELLAR'"
|
||||||
cp /mnt/etc/ssl/certs/ca.crt /mnt/root
|
cp /mnt/etc/ssl/certs/ca.crt /mnt/root
|
||||||
|
cp /mnt/etc/ssl/certs/ca.crt /mnt/usr/local/share/ca-certificates/
|
||||||
chroot /mnt /bin/bash -c "chown -R www-data:www-data /etc/ssl/private/"
|
chroot /mnt /bin/bash -c "chown -R www-data:www-data /etc/ssl/private/"
|
||||||
chroot /mnt /bin/bash -c "chown -R www-data:www-data /etc/ssl/certs/"
|
chroot /mnt /bin/bash -c "chown -R www-data:www-data /etc/ssl/certs/"
|
||||||
chmod 600 -R /mnt/etc/ssl/private/
|
chmod 600 -R /mnt/etc/ssl/private/
|
||||||
chmod 644 -R /mnt/etc/ssl/certs/ca.crt
|
chmod 644 -R /mnt/etc/ssl/certs/ca.crt
|
||||||
|
chroot /mnt /bin/bash -c "update-ca-certificates"
|
||||||
|
|
||||||
read a
|
read a
|
||||||
|
|
Loading…
Reference in a new issue