Created
August 6, 2016 01:06
-
-
Save milabs/754d02416ca74e6958c8b7a2b251bf1b to your computer and use it in GitHub Desktop.
Create self-signed certificate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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