https://github.com/travisjeffery/certmagic-sqlstorage
SQL storage for CertMagic/Caddy TLS data.
https://github.com/travisjeffery/certmagic-sqlstorage
caddy certificates certmagic ssl tls
Last synced: about 1 month ago
JSON representation
SQL storage for CertMagic/Caddy TLS data.
- Host: GitHub
- URL: https://github.com/travisjeffery/certmagic-sqlstorage
- Owner: travisjeffery
- License: mit
- Created: 2021-05-31T08:07:23.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-11T07:07:43.000Z (over 2 years ago)
- Last Synced: 2025-03-28T12:21:19.620Z (about 2 months ago)
- Topics: caddy, certificates, certmagic, ssl, tls
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 21
- Watchers: 2
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# certmagic-sqlstorage
[](https://godoc.org/github.com/travisjeffery/certmagic-sqlstorage)
SQL storage for CertMagic/Caddy TLS data.
Currently supports PostgreSQL but it'd be pretty easy to support other RDBs like
SQLite and MySQL. Please make a pull-request if you add support for them and I'll
gladly merge.# Example
``` go
db, err := sql.Open("postgres", "conninfo")
if err != nil { ... }
storage, err := certmagicsql.NewStorage(
db,
certmagicsql.Options{},
)
if err != nil { ... }
certmagic.Default.Storage = storage
```# LICENSE
MIT