Questions tagged [autocert]
7 questions
2
votes
1 answer
How to apply new TLS configuration for HTTPS server in Go Fiber
I use Go Fiber for TLS server. How I can apply new configuration to TLS server without restart application?
For example I have code
app := fiber.New()
m := &autocert.Manager{
Prompt: autocert.AcceptTOS,
HostPolicy:…

Vyacheslav
- 59
- 5
2
votes
1 answer
I can't get `golang.org/x/crypto/acme/autocert` to work (for gRPC), I get an `acme_account+key` file and no X509 cert
UPDATE After much debugging, I uncovered Get "https://acme-v02.api.letsencrypt.org/directory": x509: certificate signed by unknown authority and suspect (!?) this results from the recent expiration of Let's Encrypt's root cert.
I accept that "This…

DazWilkin
- 32,823
- 5
- 47
- 88
2
votes
0 answers
Can AutoCert in Golang use custom ports if a proxy is forwarding?
In Golang, with autocert, I keep seeing examples like this:
server := &http.Server{
Addr: ":https",
Handler: r,
TLSConfig: &tls.Config{
GetCertificate: certManager.GetCertificate,
},
}
go…

Chemdream
- 618
- 2
- 9
- 25
1
vote
2 answers
acme/autocert: unable to satisfy acme challenges for domain: no viable challenge type found
I trying to obtain a TLS certificate from Let's Encrypt in order to serve content over HTTPS.
After I run the code on the server in the VM instance on GCP, and tried to connect to it from my browser, the following error message is…

pkdc
- 173
- 2
- 13
1
vote
1 answer
wildcard certificate support using Autocert (golang)
implementing a https go server with wildcard certificate support.
package main
import (
"crypto/tls"
"log"
"net/http"
"golang.org/x/crypto/acme/autocert"
)
func main() {
certManager := autocert.Manager{
Prompt: …

hemanth koganti
- 103
- 2
- 12
0
votes
1 answer
How to solve x509: certificate has expired or is not yet valid when doing http requests
I have a web server that gets it's certs from golang.org/x/crypto/acme/autocert
I run it on a VM.
Relevante code:
cache := autocert.DirCache("cert")
certManager := autocert.Manager{
Prompt: autocert.AcceptTOS,
HostPolicy:…

TidStorm
- 66
- 1
- 8
0
votes
0 answers
Using Autocert in Go and appending a self-signed certificate to serve https locally
My goal is to serve a simple https endpoint both locally and in production. I found the autocert package which I believe I can use in production with lets encrypt. I found gssc to start a https server locally with self-signed certs. Finally, How to…

Jimbo
- 25,790
- 15
- 86
- 131