RSVP is an events invitation platform that relies on physical QR Codes and allows printing, sending and tracking invitations to events.
This app supports HTTPS (TLS) with certificates for both local development and production.
For local testing with trusted certificates, use mkcert.
Install mkcert:
brew install mkcert
mkcert -installGenerate certificates:
mkcert localhost 127.0.0.1 ::1certs/localhost.pem
certs/localhost-key.pemSet environment variables:
export TLS_CERT_PATH=certs/localhost.pem
export TLS_KEY_PATH=certs/localhost-key.pemProduction (public domain) For production deployments using a real domain (rsvp.mprlab.com), use Let's Encrypt.
Steps: On your Mac, install Certbot:
brew install certbotObtain a certificate via DNS challenge:
sudo certbot certonly --manual --preferred-challenges dns -d rsvp.mprlab.comAfter success, certificates are stored in:
/etc/letsencrypt/live/mywebsite.com/fullchain.pem
/etc/letsencrypt/live/mywebsite.com/privkey.pemCopy the certificates to the production server:
scp /etc/letsencrypt/live/mywebsite.com/fullchain.pem user@server:/opt/myapp/certs/fullchain.pem
scp /etc/letsencrypt/live/mywebsite.com/privkey.pem user@server:/opt/myapp/certs/privkey.pemOn the production server, set environment variables:
export TLS_CERT_PATH=/opt/myapp/certs/fullchain.pem
export TLS_KEY_PATH=/opt/myapp/certs/privkey.pem