Mohammed Al Sahaf
eba47a3de4
CSRs can only be pkcs10
2023-11-15 22:47:11 +03:00
Mohammed Al Sahaf
a9933aace1
refactor and tests
2023-09-18 00:03:31 +03:00
Mohammed Al Sahaf
37c6f1c5b6
add a line break between struct fields
...
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
2023-09-15 09:10:54 +00:00
Mohammed Al Sahaf
5610ff9db4
appease the linter
2023-09-06 09:50:17 +03:00
Mohammed Al Sahaf
f49d2c5b02
allow customizable CSR key ID/name and key parameters
2023-09-05 17:59:10 +03:00
Mohammed Al Sahaf
5b09e7df3d
pki: rough draft for generating CSR through API
2023-08-25 22:00:28 +03:00
Jacob Gadikian
d6f86cccf5
ci: use gci linter ( #5708 )
...
* use gofmput to format code
* use gci to format imports
* reconfigure gci
* linter autofixes
* rearrange imports a little
* export GOOS=windows golangci-lint run ./... --fix
2023-08-14 09:41:15 -06:00
Matt Holt
0e2c7e1d35
caddytls: Reuse certificate cache through reloads ( #5623 )
...
* caddytls: Don't purge cert cache on config reload
* Update CertMagic
This actually avoids reloading managed certs from storage
when already in the cache, d'oh.
* Fix bug; re-implement HasCertificateForSubject
* Update go.mod: CertMagic tag
2023-07-11 19:10:58 +00:00
Francis Lavoie
f6bab8ba85
context: Rename func to AppIfConfigured
( #5397 )
2023-02-27 18:58:27 +00:00
Matthew Holt
e43b6d8178
core: Variadic Context.Logger(); soft deprecation
...
Ideally I'd just remove the parameter to caddy.Context.Logger(), but
this would break most Caddy plugins.
Instead, I'm making it variadic and marking it as partially deprecated.
In the future, I might completely remove the parameter once most
plugins have updated.
2022-09-16 16:55:36 -06:00
Francis Lavoie
a9c7e94a38
chore: Comment fixes ( #4634 )
2022-03-13 01:38:11 -05:00
Matthew Holt
9b7cdfa2f2
caddypki: Try to fix lint warnings
2022-03-02 13:38:05 -07:00