Skip to content

Instantly share code, notes, and snippets.

@erfg12
Last active July 29, 2021 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erfg12/c8caee70c584b9c985b45acdad6df29d to your computer and use it in GitHub Desktop.
Save erfg12/c8caee70c584b9c985b45acdad6df29d to your computer and use it in GitHub Desktop.

RIGHT CLICK ON OpenSSL.exe AND RUN AS ADMIN

req -x509 -nodes -new -sha256 -days 1024 -newkey rsa:2048 -keyout RootCA.key -out RootCA.pem -subj "/C=US/CN=Example-Root-CA"

x509 -outform pem -in RootCA.pem -out RootCA.crt

MOVE RootCA.key > backend\message\certificates\private.key
MOVE RootCA.crt > backend\message\certificates\certificate.crt
MOVE RootCA.pem > frontend\cert.pem
MOVE RootCA.key > frontend\key.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment