diff --git a/configs/scripts/server.sh b/configs/scripts/server.sh index 5dc0c1f..811096c 100755 --- a/configs/scripts/server.sh +++ b/configs/scripts/server.sh @@ -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