Skip to content

Instantly share code, notes, and snippets.

@milabs
Created August 6, 2016 01:06
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 milabs/754d02416ca74e6958c8b7a2b251bf1b to your computer and use it in GitHub Desktop.
Save milabs/754d02416ca74e6958c8b7a2b251bf1b to your computer and use it in GitHub Desktop.
Create self-signed certificate
#!/bin/bash
out="out"
[[ $1 ]] && out="$1"
mkdir -p $out
echo "## Creating self-signed certificate -> {$out}"
openssl req -nodes -new -x509-keyout ${out}/server.key -out ${out}/server.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment