What is mTLS?
Mutual TLS (mTLS) adds an optional second layer of authentication to your Method integration. In addition to your API key, your application presents a client certificate on every request, and Method verifies that certificate before processing the call. mTLS is optional and opt-in. It is available for teams that require it and must be provisioned per team and per environment before it takes effect. Teams that are not provisioned for mTLS continue to authenticate with their API key alone and are unaffected. If you are interested in mTLS, contact your Method representative to have your team provisioned.What changes with mTLS
You continue to call the standard Method hostnames. The hostnames are the same whether or not your team uses mTLS.- A valid client certificate
- Your normal Method credential (an API key or OAuth access token)
Getting a client certificate
You generate a private key and a certificate signing request (CSR). You send Method the CSR, and Method returns a signed client certificate.- Generate your private key and CSR (see below).
- Send Method the CSR.
- Method returns
client.pem, and on first issuance the CAchain.pemif you need it for your trust store.
Exchange files with Method over email or another secure channel. Your Method representative will coordinate the exchange and confirm the approved Subject DN before you generate the CSR.
Generate a private key and CSR
Run the following, replacing the placeholders in-subj with your approved values:
client.key and client.csr. client.csr is your certificate signing request and should be sent to Method.
Making authenticated requests
Present your client certificate and private key alongside your API key on every request:--cacert chain.pem with cURL, or the equivalent in your HTTP client).
Error handling
When mTLS is enforced for your team, requests that fail certificate validation return a401 or 403. See mTLS Errors for the full list and response bodies.
Certificate rotation
Renew your certificate before it expires:- Generate a new private key and CSR.
- Send Method the new CSR.
- Method registers the new certificate.
- Deploy the new certificate. Both the old and new certificates remain valid during an agreed overlap window.
- Method removes authorization for the old certificate once you confirm the switch.
If your Subject DN does not change between renewals, no configuration change is needed on Method’s side.