Skip to content

Instantly share code, notes, and snippets.

@inittab
inittab / new_cert
Last active February 16, 2017 14:15
acme_tiny shell wrapper
#!/bin/bash
## Usage: new_cert example.net www.example.net images.example.net
##
## Creates o renews a let's encrypt certifcate using acme-tiny
## Files' names for certs/keys will be based on the first domain
## if multiple are specified as arguments
##
## Depends: openssl, acme-tiny, an account key: openssl genrsa 4096 > account.key
## Recommends: let's encrypt intermediat cert: