Skip to content

Instantly share code, notes, and snippets.

View samryl's full-sized avatar

Samryl samryl

  • Phoenix, Arizona
  • 15:00 (UTC -06:00)
View GitHub Profile
@gsong
gsong / gist:6321633
Last active February 4, 2022 12:06
Bash script to generate SSL csr/key/crt
#!/bin/bash
# Usage:
#
# ssl_setup [--self] <name> <csr_config>
#
# This script is used to generate key and CSR for use HTTPS in Nginx.
#
# --self Generate self-signed certificate in addition to key and CSR.
# name Output files will be named as <name>.key and <name>.csr.