Authcookie TLS

This commit is contained in:
Meutel 2017-07-29 10:50:41 +02:00
parent 456c28fa55
commit 3df5ff763d
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@ -61,3 +61,5 @@ form-ex1/form-ex1
form-ex2/form-ex2 form-ex2/form-ex2
webcounter/webcounter webcounter/webcounter
authcookie/authcookie authcookie/authcookie
cert.pem
key.pem

View File

@ -72,5 +72,5 @@ func main() {
http.HandleFunc("/", app.HomePage) http.HandleFunc("/", app.HomePage)
http.HandleFunc("/login", app.LoginPage) http.HandleFunc("/login", app.LoginPage)
http.HandleFunc("/logout", app.LogoutPage) http.HandleFunc("/logout", app.LogoutPage)
http.ListenAndServe(":9000", nil) http.ListenAndServeTLS(":9443", "../cert.pem", "../key.pem", nil)
} }