[java-metadata-aggregator] branch main updated: MDA-297 - Add a self-signed certificate

Ian Young ian at iay.org.uk
Mon Oct 23 13:46:54 UTC 2023


This is an automated email from the git hooks/post-receive script.

iay pushed a commit to branch main
in repository java-metadata-aggregator.

View the commit online:
http://git.shibboleth.net/view/?p=java-metadata-aggregator.git;a=commit;h=6c0e3ae6989173902a866915e92b7ba4b53837d4

The following commit(s) were added to refs/heads/main by this push:
     new 6c0e3ae  MDA-297 - Add a self-signed certificate
6c0e3ae is described below

commit 6c0e3ae6989173902a866915e92b7ba4b53837d4
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Mon Oct 23 14:46:45 2023 +0100

    MDA-297 - Add a self-signed certificate
    
    https://shibboleth.atlassian.net/browse/MDA-297
---
 doc/wiki/.gitignore   |  1 +
 doc/wiki/make-keys.sh | 11 ++++++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/doc/wiki/.gitignore b/doc/wiki/.gitignore
index 1ef0751..b20e15d 100644
--- a/doc/wiki/.gitignore
+++ b/doc/wiki/.gitignore
@@ -1,5 +1,6 @@
 .bash_history
 .rnd
 path/to/input/private-key.pem
+path/to/input/self-signed.pem
 path/to/output/*
 !path/to/output/.gitkeep
diff --git a/doc/wiki/make-keys.sh b/doc/wiki/make-keys.sh
index 7de1008..00a2b66 100755
--- a/doc/wiki/make-keys.sh
+++ b/doc/wiki/make-keys.sh
@@ -1,3 +1,12 @@
 #!/usr/bin/sh
 
-openssl genrsa >path/to/input/private-key.pem
+KEYFILE=path/to/input/private-key.pem
+CERTFILE=path/to/input/self-signed.pem
+
+# Generate an RSA private key
+openssl genrsa >$KEYFILE
+chmod 600 $KEYFILE
+
+# Generate a self-signed certificate based on that key
+openssl req -key $KEYFILE -new -x509 -days 365 -out $CERTFILE \
+    -subj "/CN=test-self-signed"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list