<acct-file>
A PEM file with a client certificate. The node will present it to the receiver if the receiver requests it. There is no default.
This is an alternative to a token in a header. The receiver has to tell its own nodes from others somehow, and there are two ways: a secret in a header (http-webhook-extra-headers) or a certificate. The second is harder to maintain — certificates expire — but it is not sent in every request and does not lie in a file in plain text.
The line requires nothing. If the receiver does not ask for a certificate, it simply will not take effect — and silently: there will be no error, and no authorization either.
A choice between two ways of proof:
| Method | Pro | Con |
|---|---|---|
| token in a header | nothing to expire, revocation — one file | the secret goes out in every request |
| client certificate | the secret is not transmitted | expires, needs issuing and renewal |
Together they are not needed, although they do not interfere with each other.
# the receiver requires a client certificate instead of a token <acct-file /var/log/pmta/webhook.json> http-webhook-url https://partner.example.com/ingest http-webhook-certificate /etc/pmta/webhook1-client-cert.pem</acct-file>
what people get wrong and how it ends2 mistakes▶
our experience
our experience
2 relations
openssl s_client -connect HOST:443 -msg </dev/null | grep -c CertificateRequest
3 articles
◇What the node tells about itself and through which channelsSeven observation surfaces: the web monitor, the console in four formats, the log, accounting, accounting search, metrics and export to external analytics.◇Two inbound report processors and what to do with themBounces by message and complaints are parsed by two identically structured blocks; each has its own address list and its own pair of decisions about the message’s fate.◇Five ways for a queue to hand off a messageA queue does not have to use SMTP: it can write to a file, run a program, call over HTTP or discard.