Artifact Content
Not logged in

Artifact 9fd99c4539877b20b04ba6a80793eb57710114ff:


# Adapted from:

# Create a private key
openssl genrsa -out client.key 2048

# Create a certificate signing request
openssl req -new -sha256 -key client.key -out client.csr -config client.cnf -days 1095

# Use the CSR and the CA key (previously generated) to create a certificate
openssl x509 -req \
    -in client.csr \
    -CA ca.crt \
    -CAkey ca.key \
    -set_serial 0x`cat` \
    -passin 'pass:password' \
    -out client.crt \
    -days 1095

# Encrypt with password
openssl rsa -aes128 -in client.key -out client-enc.key -passout 'pass:password'