1 Star 0 Fork 0

iTransit/docker-mkcert

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
dev.go 448 Bytes
Copy Edit Raw Blame History
vishnudxb authored 2018-09-06 16:43 . Valid ssl certificates for local
package main
import (
"net/http"
"log"
)
func TestServer(w http.ResponseWriter, req *http.Request) {
w.Header().Set("Content-Type", "text/plain")
w.Write([]byte("Connected to the Local server.\n"))
}
func main() {
http.HandleFunc("/", TestServer)
err := http.ListenAndServeTLS(":443", "/tmp/dev.localhost.com.pem", "/tmp/dev.localhost.com-key.pem", nil)
if err != nil {
log.Fatal("ListenAndServe: ", err)
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/iTransit/docker-mkcert.git
git@gitee.com:iTransit/docker-mkcert.git
iTransit
docker-mkcert
docker-mkcert
master

Search