Skip to content

confluentinc/certmagic-sqlstorage

 
 

Repository files navigation

certmagic-sqlstorage

GoDoc

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

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

About

SQL storage for CertMagic/Caddy TLS data.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.3%
  • Emacs Lisp 1.7%