Skip to content

Commit

Permalink
fix: README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderMatveev committed May 12, 2022
1 parent 754e532 commit cad483e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ import (

func main() {
server := http.Server{
Addr: fmt.Sprintf(":%d", 3443),
Addr: fmt.Sprintf(":%d", 3443),
}
start := time.Now()
log.Print("Generating TLS certs")
if server.TLSConfig, err = owntls.Generate(1024, pkix.Name{
var err error
if server.TLSConfig, err = gentls.New(1024, pkix.Name{
Organization: []string{"SelfSigned"},
Country: []string{"RU"},
Locality: []string{"Moscow"},
Expand All @@ -39,4 +40,5 @@ func main() {
log.Fatal(server.ListenAndServeTLS("", ""))
}


```

0 comments on commit cad483e

Please sign in to comment.