Skip to content

Instantly share code, notes, and snippets.

@deepforu47
deepforu47 / openssl-generate-rsa-pss.sh
Last active October 31, 2023 19:40 — forked from superseb/openssl-generate-rsa-pss.sh
Generate openssl pss certificate
# Generate RSASSA-PSS private key for CA
# The key size is 2048; the exponent is 65537
openssl genpkey -algorithm rsa-pss -pkeyopt rsa_keygen_bits:2048 -out CA.priKey
# Generate self-signed RSASSA-PSS CA
openssl req -x509 -new -key CA.priKey -subj "/CN=CA" -sha256 -out CA.cer
# Generate RSASSA-PSS private key for EE
openssl genpkey -algorithm rsa-pss -pkeyopt rsa_keygen_bits:2048 -out EE.priKey
@deepforu47
deepforu47 / generate.sh
Created July 15, 2021 02:56 — forked from alfredodeza/generate.sh
Generate a self signed cert (spits out an ssl.key and ssl.cert) in one go
#!/bin/bash
# Easily generate a 10 year SSL certificate and key for development. It
# creates a configuration file for wild card domains, if no argument is passed
# in will fallback to "node.a" as the domain to use.
#
# Upon completion, these files should now exist::
#
# * openssl.cnf
# * ssl.key
# * ssl.crt