Self-signed certificate generator for localhost and internal servers
An online tool for creating self-signed certificates for localhost, a development machine or an internal server. It can build a small certificate authority and issue the server certificate from it, which is the arrangement that actually makes the browser warning disappear: you install the CA once and every certificate issued from it afterwards is accepted. Everything is generated in your browser through the WebCrypto API.
How to use it
Local CA plus certificate is the one you want if the browser warning bothers you. A single self-signed certificate is fine for a quick test or an API client that skips verification.
Every hostname and IP you will type into the address bar. localhost and 127.0.0.1 are different names — include both.
Only in the CA mode, and only once per machine. The instructions for your platform are under the CA certificate.
Save the certificate and key, then use the nginx or Apache snippet below them.