-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
easily swappable {tcp, tls, onion} endpoints
- Loading branch information
joelanders
committed
May 4, 2016
1 parent
6f1eb71
commit e268de2
Showing
4 changed files
with
93 additions
and
68 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ ! -d private ] | ||
then | ||
mkdir private | ||
fi | ||
|
||
openssl req -x509 -newkey rsa:2048 \ | ||
-keyout private/ssl-key.pem -out private/ssl-cert.pem \ | ||
-days 400 -nodes -subj '/CN=selfie' | ||
|
||
cat private/ssl-key.pem private/ssh-cert.pem > private/ssl-key-and-cert.pem |
This file contains 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
This file contains 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
This file contains 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