When using Caddy Server, it stores certificates in ~/.caddy/acme/acme-v01.api.letsencrypt.org/sites/{your domain name}/
3 files are stored in the folder called:
- {yourdomain}.crt
- {yourdomain}.json
- {yourdomain}.key
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -e | |
| # Creates a systemd-nspawn container with Alpine | |
| MIRROR=http://dl-cdn.alpinelinux.org/alpine | |
| VERSION=${VERSION:-v3.23} | |
| APKTOOLS_VERSION=3.0.3-r1 | |
| wget_or_curl () { | |
| if command -v wget >/dev/null; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| import fcntl | |
| from contextlib import contextmanager | |
| @contextmanager | |
| def locked_open(filename, mode='r'): | |
| """locked_open(filename, mode='r') -> <open file object> | |
| Context manager that on entry opens the path `filename`, using `mode` | |
| (default: `r`), and applies an advisory write lock on the file which |