[cpp-sp] 01/07: Modify shib-keygen to create the certificate key group-readable
Scott Cantor
cantor.2 at osu.edu
Thu Dec 20 19:43:56 EST 2018
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to annotated tag debian/2.3.1+dfsg-2
in repository cpp-sp.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=1a81c69db595a4af8814776968ebe4f5b093806e
commit 1a81c69db595a4af8814776968ebe4f5b093806e
Author: Russ Allbery <rra at debian.org>
AuthorDate: Fri May 14 17:30:00 2010 -0700
Modify shib-keygen to create the certificate key group-readable
* Modify shib-keygen to create the new certificate key group-readable by
_shibd and not world-readable. (Closes: #571631)
---
configs/keygen.sh | 9 +++++----
debian/changelog | 7 +++++++
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/configs/keygen.sh b/configs/keygen.sh
index cd53c9e..e68607c 100755
--- a/configs/keygen.sh
+++ b/configs/keygen.sh
@@ -66,6 +66,11 @@ subjectAltName=$ALTNAME
subjectKeyIdentifier=hash
EOF
+# Added for Debian. Make the key mode 640 and readable by group _shibd so
+# that the Debian shibd can use a non-root user.
+touch sp-key.pem
+chgrp _shibd sp-key.pem
+chmod 640 sp-key.pem
if [ -z "$BATCH" ] ; then
openssl req -config sp-cert.cnf -new -x509 -days $DAYS -keyout sp-key.pem -out sp-cert.pem
else
@@ -73,7 +78,3 @@ else
fi
rm sp-cert.cnf
-
-if [ -s sp-key.pem ] ; then
- chmod 600 sp-key.pem
-fi
diff --git a/debian/changelog b/debian/changelog
index e3d0bb7..b628755 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+shibboleth-sp2 (2.3.1+dfsg-2) UNRELEASED; urgency=low
+
+ * Modify shib-keygen to create the new certificate key group-readable by
+ _shibd and not world-readable. (Closes: #571631)
+
+ -- Russ Allbery <rra at debian.org> Fri, 14 May 2010 17:29:48 -0700
+
shibboleth-sp2 (2.3.1+dfsg-1) unstable; urgency=low
* New upstream release.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list