💾 Archived View for gemini.hyperlinkyourheart.com › gemicandocs › pages › tips.gmi captured on 2023-06-16 at 16:18:39. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

Tips

Here are some tips about Gemican that you might find useful.

Develop Locally Using SSL

The gemini protocol requires the use of SSL, and the Gemican development server is no exception to this. It does not currently create self-signed certificates on the fly, so you must create some before running the dev server.

First, create a self-signed certificate and key using `openssl` (this creates `cert.pem` and `key.pem`):

$ openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj '/CN=localhost'

These file names are the defaults, and gemican should pick them up if run from the current directory. The `SSL_PRIVATE_KEY_FILE` and `SSL_CERTIFICATE_FILE` settings can be used to specify their locations if you store them elsewhere.

The files can also be specified on the command line using `--key` and `--cert` switches.

↩ Index