An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# certmagic-sqlstorage

[![GoDoc](https://godoc.org/github.com/travisjeffery/certmagic-sqlstorage?status.svg)](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