From eb0f1bb89709a59c3d2595c5454047f4f2c1841a Mon Sep 17 00:00:00 2001 From: Henry Camacho Date: Thu, 2 Feb 2017 17:06:29 -0600 Subject: [PATCH] various clean up. Removed binary, added certs --- .gitignore | 0 README.md | 5 ----- vpn-server.go | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index 86d5f1e..b82a017 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,6 @@ Build Instructions ------------------ -Create self-signed certificates: -```bash -openssl req -x509 -nodes -newkey rsa:4096 -keyout server.key -out server.crt -days 365 -``` - Get the dependencies ```bash diff --git a/vpn-server.go b/vpn-server.go index 43bae8d..789f16d 100755 --- a/vpn-server.go +++ b/vpn-server.go @@ -74,7 +74,7 @@ func launchListener() { go connectionTable.run() http.HandleFunc("/", handlerServeContent) - err := http.ListenAndServeTLS(*argServerPort, "server.crt", "server.key", nil) + err := http.ListenAndServeTLS(*argServerPort, "certs/fullchain.pem", "certs/privkey.pem", nil) if err != nil { logfatal.Println("ListenAndServe: ", err) panic(err)