Skip to content

Commit 22582f6

Browse files
- update to new repo location
1 parent ba6c48f commit 22582f6

1 file changed

Lines changed: 13 additions & 17 deletions

File tree

README.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,30 @@
1-
# https-go [![GoDoc](http://godoc.org/github.com/rocketlaunchr/https-go?status.svg)](http://godoc.org/github.com/rocketlaunchr/https-go)
1+
<p align="right">
2+
&nbsp;&nbsp;<strong>the project to show your appreciation.</strong> :arrow_upper_right:
3+
</p>
24

3-
Quickly create a self-signed Go HTTPS server.
5+
<p align="right">
6+
<a href="http://godoc.org/github.com/romance-dev/https-cert-go"><img src="http://godoc.org/github.com/romance-dev/https-cert-go?status.svg" /></a>
7+
<a href="https://goreportcard.com/report/github.com/romance-dev/https-cert-go"><img src="https://goreportcard.com/badge/github.com/romance-dev/https-cert-go" /></a>
8+
</p>
49

5-
**the project to show your appreciation.**
10+
# Self Signed HTTPS Certificate Generation
11+
12+
Quickly generate TLS certificates in Go.
613

714
## Example
815

916
```go
10-
package main
11-
12-
import (
13-
"log"
14-
"net/http"
15-
"github.com/rocketlaunchr/https-go"
16-
)
17-
18-
func main() {
17+
import https "github.com/romance-dev/https-cert-go"
1918

20-
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNoContent) })
19+
pub, priv, _ := https.GenerateKeys(https.GenerateOptions{Host: "thecucumber.app"})
2120

22-
httpServer, _ := https.Server("8080", https.GenerateOptions{Host: "thecucumber.app"})
23-
log.Fatal(httpServer.ListenAndServeTLS("", ""))
24-
}
2521
```
2622

2723

2824

2925
### Extra Notes
3026

31-
Just remember to change the url from http to https. Also configure your http client code/application to allow self-signed certificates otherwise they will spit out an error.
27+
Just remember to change the server's url from http to https. Also configure your http client code/application to allow self-signed certificates, otherwise they will spit out an error.
3228

3329

3430
Other useful packages

0 commit comments

Comments
 (0)