fixed probably idk

This commit is contained in:
Patrick 2024-11-13 19:19:04 +01:00
parent 33a3f1ebd6
commit 76a71d81cd

View file

@ -28,10 +28,10 @@ chroot /mnt /bin/bash -c "cd root && openssl genrsa -out ca.key 2048"
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 ca.key -sha256 -days 1024 -out /mnt/etc/ssl/certs/ca.crt"
chroot /mnt /bin/bash -c "openssl req -x509 -new -nodes -key /root/ca.key -sha256 -days 1024 -out /etc/ssl/certs/ca.crt"
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/
chmod 644 -R /mnt/etc/ssl/certs/jetsearch.com.crt
chmod 644 -R /mnt/etc/ssl/certs/ca.crt
read a