diff options
author | root <root@lamia.panaceas.james.local> | 2015-06-05 13:25:19 +0100 |
---|---|---|
committer | root <root@lamia.panaceas.james.local> | 2015-06-05 13:25:19 +0100 |
commit | f573795110f74db407558036699bb124900e5ccd (patch) | |
tree | c35a463e698d30f5e716d369c6502d4075e67532 /ilo/certs | |
parent | 9859c681f2ead3daa03154d93363a3337da10887 (diff) | |
download | inf-f573795110f74db407558036699bb124900e5ccd.tar.gz inf-f573795110f74db407558036699bb124900e5ccd.tar.bz2 inf-f573795110f74db407558036699bb124900e5ccd.zip |
add support for HP ilo remote consoles
Diffstat (limited to 'ilo/certs')
-rwxr-xr-x | ilo/certs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/ilo/certs b/ilo/certs new file mode 100755 index 0000000..4b4e262 --- /dev/null +++ b/ilo/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 + + + |