mirror of
https://github.com/gosticks/simplecert.git
synced 2026-09-02 22:40:17 +00:00
19 lines
311 B
Go
19 lines
311 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
|
|
"github.com/foomo/simplecert"
|
|
)
|
|
|
|
func main() {
|
|
|
|
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
|
w.WriteHeader(http.StatusOK)
|
|
w.Write([]byte("hello"))
|
|
})
|
|
|
|
log.Fatal(simplecert.ListenAndServeTLSLocal(":443", nil, "*.myawesomewebsite.com"))
|
|
}
|