From b6ff4cb4dcc61cb069740b0f0e5098394b4a700d Mon Sep 17 00:00:00 2001 From: root Date: Tue, 31 Aug 2021 17:48:59 +0100 Subject: add support for ilo5 (cherry picked from commit 860cff84e4bf068373819bc54bab098a64d3dccb) --- ilo5/certs | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 ilo5/certs (limited to 'ilo5/certs') diff --git a/ilo5/certs b/ilo5/certs new file mode 100755 index 0000000..4b4e262 --- /dev/null +++ b/ilo5/certs @@ -0,0 +1,38 @@ +#!/bin/bash + +rm -f server.jks server.key server.csr server.crt server.cnf + +cat << EOF > server.cnf + +[req] +distinguished_name = req_distinguished_name +x509_extensions = v3_req +prompt = no + +[ req_distinguished_name ] +commonName = localhost + +[v3_req] +subjectKeyIdentifier = hash +authorityKeyIdentifier = keyid,issuer +basicConstraints = CA:TRUE +subjectAltName = @alt_names + +[alt_names] +DNS.1 = localhost +IP.1 = 127.0.0.1 + +EOF + + + +#openssl genrsa -out server.key 1024 +#openssl req -config server.cnf -new -key server.key -out server.csr +#openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt + +openssl req -x509 -nodes -days 3650 -newkey rsa:1024 -keyout server.key -out server.crt -config server.cnf + +yes | keytool -import -v -trustcacerts -alias 127.0.0.1 -file server.crt -keystore server.jks -keypass changeit -storepass changeit + + + -- cgit v1.2.3