HTTPS webhook integration

Use this guide to to receive Pismo real-time events on your HTTPS endpoint. Pismo sends one HTTPS POST per event.

  • Authenticated with mTLS—Pismo presents a client certificate signed by your certificate authority (CA).
  • Encrypted with JWE—The event body is encrypted with your public certificate.

No password, API key, or private key is exchanged during the setup.

HTTPS webhook: event delivery architecture

graphic flow of event delivery for HTTPS webhook

Pismo sends encrypted events by HTTPS POST. Your endpoint verifies Pismo's client certificate and your application decrypts each event.

HTTPS webhook with mTLS: setup steps

Graphical list of steps to take for integration using mTLS

Each of these steps is explained in the remainder of this guide.

Before you begin

Before you begin HTTP webhook integration, ensure you have the following:

  • Your Org ID and target environment (sandbox or production)
  • A public HTTPS endpoint with a hostname, TLS 1.2 or higher, and a valid server certificate
  • A server, load balancer, or API gateway that supports mTLS (client certificate verification)
  • A private CA you control, to sign Pismo's client certificate (public CAs cannot be used)
  • OpenSSL 1.1.1 or later (macOS: brew install openssl@3)

Step 1—Create your encryption certificate

Pismo encrypts every event with this certificate (RSA, 2048 bits or more; self-signed is accepted).

openssl req -x509 -newkey rsa:4096 -sha256 -days 730 -nodes \ 
  -keyout pismo-encryption.key -out pismo-encryption.crt \ 
  -subj "/CN=pismo-webhook-encryption" 
 
base64 < pismo-encryption.crt | tr -d '\n' > pismo-encryption.crt.b64 
  • Keep pismo-encryption.key in your secrets manager. Your application uses it in Step 5. Never send it to Pismo.
  • Choose a certificate identifier (for example, my-encryption-cert-2026). Pismo returns it as the kid of every event.

Step 2—Open a Service Desk ticket

Submit a Service Desk ticket to request HTTP connectivity. Include all required information in the initial request to help avoid delays.

  1. Go to: https://pismolabs.atlassian.net/servicedesk/customer/portal/10 and select Settings.
  2. For Category, select Data.
  3. For Sub-Category, select Event Integration.
  4. Copy the template below into the Description field. Replace the examples with your information. Attach pismo-encryption.crt.b64 and select Submit.

    INTEGRATION REQUEST — HTTPS Webhook with mTLS (Real-Time Events) 
    ================================================================ 
     
    Org ID:                    TN-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 
    Environment:               Sandbox / Production 
    Requester Name:            Your Name 
    Contact Email:             [email protected] 
     
    HTTPS Endpoint URL:        https://events.yourdomain.com/pismo/events 
    Maximum TPS:               100 
    Certificate Identifier:    my-encryption-cert-2026 
    Encryption Certificate:    attached (pismo-encryption.crt.b64) 
     
    CSR key algorithm:         RSA 2048 / RSA 4096 / ECDSA P-256 
    CSR subject:               CN=pismo-events-prod, OU=Data Platform, O=Pismo 
    Existing mTLS with Pismo:  No / Yes (ticket reference: ______) 
    Send Pismo egress IPs:     Yes / No 
  • HTTPS Endpoint URL—Enter the exact final URL with no redirects.
  • Maximum TPS (Transactions per Second)—The highest number of requests per second your endpoint supports.
  • CSR key algorithm and subject—Your security team's requirements for the client certificate Pismo will use.
  • Send Pismo egress IPs—Answer Yes to receive the IP addresses to allowlist in your firewall.

Your Technical Account Manager (TAM) or Customer Success (CS) contact coordinates the certificate process with you. Your TAM/CS sends you the CSR (pismo-client.csr) and, if requested, the Pismo egress IPs.

  • For more information about mTLS for Pismo webhooks, refer to Verifying webhook requests - Request mTLS support.
  • After Pismo completes the initial configuration, you have 24 hours to adjust permissions/access on your side. If Pismo cannot deliver events within this window, the integration will be paused and you will need to open a new ticket to resume.
  • Do you need Pismo-specific details? Contact your Technical Account Manager (TAM) or the Implementation Engineer assigned to your project.

Step 3—Sign the CSR and return the certificates

You must sign the CSR and return the certificates to your TAM/CS.

  1. Sign the CSR with the CA your server will trust. The certificate needs the clientAuth usage.

    openssl x509 -req -in pismo-client.csr -CA your-ca.crt -CAkey your-ca.key -CAcreateserial \ 
      -out pismo-client.crt -days 365 -sha256 \ 
      -extfile <(printf "basicConstraints=CA:FALSE\nkeyUsage=critical,digitalSignature,keyEncipherment\nextendedKeyUsage=clientAuth")

    If your-ca.crt is an intermediate CA, append it: cat your-ca.crt >> pismo-client.crt. With another CA tool, issue a certificate with extendedKeyUsage = clientAuth.

  2. Create the CA bundle with the root CA (and intermediates) that issued your server certificate. Pismo uses this file to trust your endpoint.
    awk 1 your-server-root-ca.pem > ca-bundle.pem
  3. Send pismo-client.crt and ca-bundle.pem to your TAM/CS, as instructed in your ticket.
    Never send .key files.

Step 4—Configure your server

Configure the component that terminates TLS for your endpoint to do the following:

  1. Require client certificates and trust only the CA chain that signed Pismo's certificate (your-client-ca-chain.pem: your signing CA up to the root).
  2. Accept only Pismo's certificate subject. Get it with openssl x509 -in pismo-client.crt -noout -subject -nameopt RFC2253 and reject other subjects with HTTP 403.
  3. Allowlist the Pismo egress IPs, if you restrict inbound traffic.
  4. Keep Keep headers with underscores (for example, event_type), which some servers drop by default.

    ssl_protocols           TLSv1.2 TLSv1.3; 
    ssl_client_certificate  /etc/nginx/tls/your-client-ca-chain.pem; 
    ssl_verify_client       on; 
    underscores_in_headers  on; 
     
    location /pismo/events { 
        if ($ssl_client_s_dn != "CN=pismo-events-prod,OU=Data Platform,O=Pismo") { return 403; } 
        proxy_pass http://127.0.0.1:8080; 
    } 

Step 5—Receive and decrypt events

Each request is a POST with Content-Type: application/json and this body:

{ "enc_data": "<JWE>", "enc_secret": "<JWE>" } 

Event metadata is also sent as HTTP headers: event_id, event_type, domain, org_id, schema_version, cid, and timestamp.

Use the following procedure to decrypt an event payload.

  1. Decrypt enc_secret with pismo-encryption.key (RSA-OAEP-256 / A256GCM).
    The result is a UUID.
  2. Hash the UUID with SHA-256.
    The hash becomes the key used to decrypt enc_data.
  3. Decrypt enc_data with that key (A256GCMKW / A256GCM).
    The result is the event JSON.
    Example in Python (pip install jwcrypto):

    import hashlib, json 
    from jwcrypto import jwe, jwk 
    from jwcrypto.common import base64url_encode 
     
    PRIVATE_KEY = jwk.JWK.from_pem(open("pismo-encryption.key", "rb").read()) 
     
    def decrypt_event(body: dict) -> dict: 
        secret = jwe.JWE() 
        secret.deserialize(body["enc_secret"], key=PRIVATE_KEY) 
        key = jwk.JWK(kty="oct", k=base64url_encode(hashlib.sha256(secret.payload).digest())) 
        data = jwe.JWE() 
        data.deserialize(body["enc_data"], key=key) 
        return json.loads(data.payload) 

Answer each request with HTTP 2xx within 10 seconds, after storing the event. Any other answer is retried, so use event_id to recognize repeated deliveries.

Retry and retention policy

To ensure ecosystem stability, the Pismo platform applies retry limits. Events that exceed the retry threshold are moved to controlled retention and can be redelivered upon request, as long as they are within the 24-hour retention window.

Step 6—Go live

These are the final steps to go Live.

  1. Run the diagnostic script (see Validate Integration) and paste the result in the ticket.
    Pismo enables delivery and confirms in the ticket.
  2. Confirm in the ticket that the first event was received and decrypted.

Troubleshooting

SymptomSolution
No requests reach your server Allowlist the Pismo egress IPs and check that the hostname resolves publicly.
Pismo reports certificate signed by unknown authority Add the root CA of your server certificate to
ca-bundle.pem and send it again.
Your server rejects Pismo's certificate Trust the full CA chain that signed it, and use the exact subject from Step 4.
Event headers are missing Allow headers with underscores (nginx: underscores_in_headers on).
Decryption fails Use the private key of the certificate identified by the kid.

Validate integration

Download pismo-https-webhook-diagnostic.sh, replace the values at the top with your own, and run it from a network that can reach your endpoint:

#!/usr/bin/env bash
# Pismo Data Platform — HTTPS Webhook (mTLS) diagnostics
# Requires OpenSSL 1.1.1+ (macOS: brew install openssl@3). Private keys are not read.

ENDPOINT_URL="https://events.yourdomain.com/pismo/events"   # ← replace
CA_BUNDLE="./ca-bundle.pem"                                 # file you send to Pismo
PISMO_CLIENT_CERT="./pismo-client.crt"                      # certificate you signed for Pismo
CLIENT_CA_CHAIN="./your-client-ca-chain.pem"                # CA chain your server trusts
ENCRYPTION_CERT="./pismo-encryption.crt"                    # your encryption certificate

OPENSSL=openssl
openssl version | grep -q LibreSSL && for c in /opt/homebrew/opt/openssl@3/bin/openssl /usr/local/opt/openssl@3/bin/openssl; do [ -x "$c" ] && OPENSSL="$c"; done
tmo() { if command -v timeout >/dev/null; then timeout "$@"; else perl -e 'alarm shift; exec @ARGV' "$@"; fi; }
ok() { echo "✅ $1"; P=$((P+1)); }
ko() { echo "❌ $1"; echo "   → $2"; F=$((F+1)); }
P=0; F=0
HP=${ENDPOINT_URL#https://}; HP=${HP%%/*}; HOST=${HP%%:*}; PORT=443
case "$HP" in *:*) PORT=${HP##*:} ;; esac

# 1. Pismo can reach and trust your server certificate
OUT=$(echo | tmo 20 "$OPENSSL" s_client -connect "$HOST:$PORT" -servername "$HOST" -verify_hostname "$HOST" -CAfile "$CA_BUNDLE" 2>&1)
if echo "$OUT" | grep -q "BEGIN CERTIFICATE" && echo "$OUT" | grep -q "Verify return code: 0 (ok)" && echo "$OUT" | grep -Eq "TLSv1\.[23]"; then
    ok "Server certificate valid for $HOST and trusted by $CA_BUNDLE"
else
    ko "Endpoint unreachable, or server certificate not trusted by $CA_BUNDLE" "Check DNS/firewall, TLS 1.2+, and the root CA of your server certificate in $CA_BUNDLE"
fi

# 2. Your server rejects requests without a client certificate
RESP=$(printf 'POST / HTTP/1.1\r\nHost: %s\r\nContent-Length: 0\r\nConnection: close\r\n\r\n' "$HOST" |
    tmo 20 "$OPENSSL" s_client -quiet -connect "$HOST:$PORT" -servername "$HOST" -CAfile "$CA_BUNDLE" 2>&1)
STATUS=$(echo "$RESP" | grep -m1 '^HTTP/' | awk '{print $2}')
if echo "$RESP" | grep -qi -e "required SSL certificate" -e "certificate required" -e "alert"; then
    ok "Requests without a client certificate are rejected"
else
    ko "Request without a client certificate was not rejected (HTTP ${STATUS:-no answer})" "Require client certificates (nginx: ssl_verify_client on)"
fi

# 3. Certificate you signed for Pismo
if "$OPENSSL" verify -CAfile "$CLIENT_CA_CHAIN" -untrusted "$PISMO_CLIENT_CERT" -purpose sslclient "$PISMO_CLIENT_CERT" >/dev/null 2>&1; then
    ok "Pismo certificate valid. Subject: $("$OPENSSL" x509 -in "$PISMO_CLIENT_CERT" -noout -subject -nameopt RFC2253 | sed 's/^subject=//')"
else
    ko "Pismo certificate missing, not signed by $CLIENT_CA_CHAIN, or without clientAuth" "Sign the CSR as in Step 3"
fi

# 4. Encryption certificate
if "$OPENSSL" x509 -in "$ENCRYPTION_CERT" -noout -text 2>/dev/null | grep -q rsaEncryption && "$OPENSSL" x509 -in "$ENCRYPTION_CERT" -noout -checkend 2592000 >/dev/null; then
    ok "Encryption certificate is RSA and valid for at least 30 days"
else
    ko "Encryption certificate missing, not RSA, or expiring within 30 days" "Create it as in Step 1"
fi

# 5. No private key in the files for Pismo
if grep -l "PRIVATE KEY" "$CA_BUNDLE" "$PISMO_CLIENT_CERT" "$ENCRYPTION_CERT" 2>/dev/null; then
    ko "Private key found in the file(s) above" "Attach certificates only"
else
    ok "Files for Pismo contain certificates only"
fi

echo; echo "Result: $P passed, $F failed. Paste this output in your ticket."
 

The script checks your endpoint and the files you send to Pismo.

Paste the output in your ticket.






Did this page help you?