Skip to content

Instantly share code, notes, and snippets.

dobesv /
Last active March 21, 2024 07:47
Script to create (1) a local certificate authority, (2) a host certificate signed by that authority for the hostname of your choice
#!/usr/bin/env bash
# Creates a CA cert and then generates an SSL certificate signed by that CA for the
# given hostname.
# After running this, add the generated dev_cert_ca.cert.pem to the trusted root
# authorities in your browser / client system.
richard-flosi /
Created September 26, 2012 16:55
Bottle with Cross-origin resource sharing (CORS)
Example of setting up CORS with
from bottle import Bottle, request, response, run
app = Bottle()
def enable_cors():