mirror of
https://github.com/kawasaki/pyscrlink.git
synced 2025-09-07 02:00:11 +02:00
Now gencert.sh generates private key and certificate for the Secure WSS server in a single file. This is not good to automate certification addition to NSS databases. Generate them separately into two files and initialize the Secure WSS server specifying them. Signed-off-by: Shin'ichiro Kawasaki <kawasaki@juno.dti.ne.jp>
17 lines
419 B
Bash
Executable File
17 lines
419 B
Bash
Executable File
#!/bin/bash
|
|
CERT_FILE=scratch-device-manager.cer
|
|
KEY_FILE=scratch-device-manager.key
|
|
|
|
# Generate certificate and key files
|
|
openssl req -x509 -out "${CERT_FILE}" -keyout "${KEY_FILE}" -newkey rsa:2048 \
|
|
-nodes -sha256 -days 3650 -extensions EXT -config /dev/stdin << HERE
|
|
[dn]
|
|
CN = device-manager.scratch.mit.edu
|
|
[req]
|
|
prompt = no
|
|
distinguished_name = dn
|
|
[EXT]
|
|
subjectAltName = DNS:device-manager.scratch.mit.edu
|
|
HERE
|
|
|