diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:36:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:36:04 +0000 |
commit | b09c6d56832eb1718c07d74abf3bc6ae3fe4e030 (patch) | |
tree | d2caec2610d4ea887803ec9e9c3cd77136c448ba /dependencies/pkg/mod/github.com/lib/pq@v1.10.7/certs/Makefile | |
parent | Initial commit. (diff) | |
download | icingadb-upstream.tar.xz icingadb-upstream.zip |
Adding upstream version 1.1.0.upstream/1.1.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | dependencies/pkg/mod/github.com/lib/pq@v1.10.7/certs/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dependencies/pkg/mod/github.com/lib/pq@v1.10.7/certs/Makefile b/dependencies/pkg/mod/github.com/lib/pq@v1.10.7/certs/Makefile new file mode 100644 index 0000000..a84e31e --- /dev/null +++ b/dependencies/pkg/mod/github.com/lib/pq@v1.10.7/certs/Makefile @@ -0,0 +1,37 @@ +.PHONY: all root-ssl server-ssl client-ssl + +# Rebuilds self-signed root/server/client certs/keys in a consistent way +all: root-ssl server-ssl client-ssl + rm -f .srl + +root-ssl: + openssl req -new -sha256 -nodes -newkey rsa:2048 \ + -config ./certs/root.cnf \ + -keyout /tmp/root.key \ + -out /tmp/root.csr + openssl x509 -req -days 3653 -sha256 \ + -in /tmp/root.csr \ + -extfile /etc/ssl/openssl.cnf -extensions v3_ca \ + -signkey /tmp/root.key \ + -out ./certs/root.crt + +server-ssl: + openssl req -new -sha256 -nodes -newkey rsa:2048 \ + -config ./certs/server.cnf \ + -keyout ./certs/server.key \ + -out /tmp/server.csr + openssl x509 -req -days 3653 -sha256 \ + -extfile ./certs/server.cnf -extensions req_ext \ + -CA ./certs/root.crt -CAkey /tmp/root.key -CAcreateserial \ + -in /tmp/server.csr \ + -out ./certs/server.crt + +client-ssl: + openssl req -new -sha256 -nodes -newkey rsa:2048 \ + -config ./certs/postgresql.cnf \ + -keyout ./certs/postgresql.key \ + -out /tmp/postgresql.csr + openssl x509 -req -days 3653 -sha256 \ + -CA ./certs/root.crt -CAkey /tmp/root.key -CAcreateserial \ + -in /tmp/postgresql.csr \ + -out ./certs/postgresql.crt |