From 19982240cbae13710c2d6e690aa5c727eb1caaec Mon Sep 17 00:00:00 2001 From: nanjiangshu Date: Thu, 5 Dec 2024 22:13:06 +0100 Subject: [PATCH] set permissions of private key files to 600 --- sda-download/dev_utils/make_certs.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sda-download/dev_utils/make_certs.sh b/sda-download/dev_utils/make_certs.sh index 49a463eec..96db30704 100755 --- a/sda-download/dev_utils/make_certs.sh +++ b/sda-download/dev_utils/make_certs.sh @@ -32,3 +32,5 @@ openssl x509 -req -in ./certs/download.csr -days 1200 -CA ./certs/ca.pem -CAkey cp ./certs/ca.pem ./certs/ca-certificates.crt chmod 644 ./certs/* +# Set the permissions of the private keys to 600 +chmod 600 ./certs/*-key.*