LukeEmmet / duckling-proxy

Duckling proxy 🦆 is a Gemini proxy to access the Small Web
MIT License
36 stars 5 forks source link

How do I generate local certificates? #11

Closed lofidevops closed 2 years ago

lofidevops commented 2 years ago
$ duckling-proxy --serverCert /path/to/cert ----serverKey /path/to/key
Info: Starting Duckling Proxy v0.2.1 on 127.0.0.1 port: 1965
2022/05/24 18:45:20 failed to load certificates: tls: failed to find any PEM data in certificate input

How do I correctly generate local certificates so that I can start the proxy?

lofidevops commented 2 years ago

This seems to work (I can now browse the web!), but I'm not 100% sure what I'm doing:

openssl req -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out myserver.crt -keyout myserver.key

Accept default values for all prompts except:

Common Name (e.g. server FQDN or YOUR name) []: 127.0.0.1
LukeEmmet commented 2 years ago

Glad to hear you got it working - you can also use gemcert by Solderpunk