Skip to content

Instantly share code, notes, and snippets.

@JuanRamino
Last active November 3, 2021 08:30
Show Gist options
  • Save JuanRamino/be2e8f3d5f8baa7a669a5927082c1cee to your computer and use it in GitHub Desktop.
Save JuanRamino/be2e8f3d5f8baa7a669a5927082c1cee to your computer and use it in GitHub Desktop.

CA CREATION

openssl genrsa -out ca.key 2048

openssl req -new -x509 -days 730 -key ca.key -subj "/C=CN/ST=GD/L=SZ/O=RAM ENTERPRISE, Inc./CN=RAM ENTERPRISE Root CA" -out ca.crt

CERTIFICATE CREATION

Change ip address with your

openssl req -newkey rsa:2048 -nodes -keyout server.key -subj "/C=CN/ST=GD/L=SZ/O=RAM ENTERPRISE, Inc./CN=172.26.76.59" -out server.csr

openssl x509 -req -extfile <(printf "subjectAltName=IP.1:172.26.76.59") -days 365 -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment