copied stuff

This commit is contained in:
Patrick 2024-11-13 19:43:15 +01:00
parent 76a71d81cd
commit 53b11de6e2

View file

@ -29,6 +29,7 @@ chmod 400 /mnt/root/ca.key
mkdir -p /mnt/etc/ssl/certs/
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"
cp /mnt/etc/ssl/certs/ca.crt /mnt/root
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/"
chmod 600 -R /mnt/etc/ssl/private/