copied stuff
This commit is contained in:
parent
76a71d81cd
commit
53b11de6e2
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ chmod 400 /mnt/root/ca.key
|
||||||
mkdir -p /mnt/etc/ssl/certs/
|
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"
|
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/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/
|
||||||
|
|
Loading…
Reference in a new issue