Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
httpcaddyfile: Add certificate_pem placeholder short, add to godoc (#3846)
Co-authored-by: Matt Holt <mholt@users.noreply.github.com> Co-authored-by: Francis Lavoie <lavofr@gmail.com>
Gaurav Dhameeja committed
Nov 5, 2020 at 00:07 UTC
7c28ecb5f487e24a982a10cb5c5a77dc03c38db1
2 files changed
+2
caddyconfig/httpcaddyfile/httptype.go
+1
@@ -99,6 +99,7 @@ func (st ServerType) Setup(inputServerBlocks []caddyfile.ServerBlock,
99
"{tls_client_issuer}", "{http.request.tls.client.issuer}",
100
"{tls_client_serial}", "{http.request.tls.client.serial}",
101
"{tls_client_subject}", "{http.request.tls.client.subject}",
102
+ "{tls_client_certificate_pem}", "{http.request.tls.client.certificate_pem}",
103
)
104
105
// these are placeholders that allow a user-defined final
modules/caddyhttp/app.go
+1
@@ -75,6 +75,7 @@ func init() {
75
// `{http.request.tls.client.fingerprint}` | The SHA256 checksum of the client certificate
76
// `{http.request.tls.client.public_key}` | The public key of the client certificate.
77
// `{http.request.tls.client.public_key_sha256}` | The SHA256 checksum of the client's public key.
78
+// `{http.request.tls.client.certificate_pem}` | The PEM-encoded value of the certificate.
79
// `{http.request.tls.client.issuer}` | The issuer DN of the client certificate
80
// `{http.request.tls.client.serial}` | The serial number of the client certificate
81
// `{http.request.tls.client.subject}` | The subject DN of the client certificate