CloudGuard WAF
  • Documentation Overview
  • What is CloudGuard WAF?
  • Getting started
    • Prepare key information
    • Log in to the Infinity Portal
    • Protect a Web Application / API
    • Deploy Enforcement Point
      • Gateway/Virtual Machine
        • AWS
          • Store Certificates in AWS
          • Store certificates on Gateway
        • Azure
          • Store Certificates in Azure
          • Store Certificates on Gateway
        • VMware
          • Store Certificates on Gateway
          • Configure networking in VMware Deployments
      • WAF as a Service
        • Certificates Managed by Check Point
        • Bring Your Own Certificate
      • Kubernetes Ingress
        • Kong Application Security
        • Istio Application Security
      • Docker
        • Single Docker
          • Deployment using 'docker' command
            • Store Certificates Locally on Docker
          • Deployment in Azure App Services
        • Dual Docker: NGINX/Kong/Envoy + Security Agent
      • Linux / NGINX / Kong
    • Monitor Events
  • Concepts
    • Gateways & Agents
    • Management & Automation
    • Security Practices
    • Contextual Machine Learning
  • Additional Security Engines
    • Anti-Bot
    • API Protection
      • API Discovery
      • Track API Discovery Learning
      • Enforce API Schema
    • File Security
    • Intrusion Prevention System (IPS)
    • Rate Limit
    • Snort Rules
  • SETUP INSTRUCTIONS
    • Setup Custom Rules and Exceptions
    • Setup Web User Response Pages
    • Setup Log Triggers
    • Setup Report Triggers
    • Setup Notification Triggers
    • Setup Behavior Upon Failure
    • Setup Agent Upgrade Schedule
  • HOW TO
    • Edit Web Application/API Settings
    • Edit Reverse Proxy Advanced Settings for a Web Asset
    • Protect an existing production site with CloudGuard WAF's Gateway
    • View Policy of all your Web Applications/APIs
    • Add Data Loss Prevention (DLP) rules
    • Configure Contextual Machine Learning for Best Accuracy
    • Track Agent Status
    • Track Learning and Move from Learn/Detect to Prevent
    • Rotate profile authentication token
    • Upgrade your Reverse Proxy when a Linux/NGINX agent is installed
    • Use Terraform to Manage CloudGuard WAF
    • Authorize Temporary Access for Check Point Support
    • Restrict Access to Backend Servers from CloudGuard WAF as a Service IPs Only
  • Troubleshooting
    • WAF Gateway / Virtual Machine
      • Azure
        • "Unable to find a tag containing the vault's name in the VMSS" Error
        • How To: Configure Key Vault for a Single Gateway
      • NGINX Error: Upstream Sent Too Big Header While Reading Response Header from Upstream
      • How To: Compare Between the Gateway's Certificate and the Upstream Certificate
    • Linux
      • SELinux: Checking Status and Disabling
    • WAF as a Service
      • Certificate Validation Failed: Adjusting CAA Record
      • How To: Redirect a Root Domain to a Subdomain Protected by WAF SaaS
      • How To: Extend Connection Timeout to Upstream
      • How To: Update Expired Certificates
  • references
    • Agent CLI
    • Management API
    • Event Query Language
    • Writing Snort Signatures
    • Events/Logs Schema
    • CVE-2022-3786 and CVE-2022-3602: OpenSSL X.509 Email Address Buffer Overflows (HIGH)
    • CVE-2025-1097, CVE-2025-1098, CVE-2025-24514, CVE-2025-1974: Ingress NGINX Controller RCE (Critical)
  • Resources
    • GitHub
    • Docker Hub
Powered by GitBook
On this page
  • First Option
  • Second Option

Was this helpful?

  1. Troubleshooting
  2. WAF Gateway / Virtual Machine

How To: Compare Between the Gateway's Certificate and the Upstream Certificate

PreviousNGINX Error: Upstream Sent Too Big Header While Reading Response Header from UpstreamNextLinux

Last updated 3 months ago

Was this helpful?

The issue related to traffic validation between the gateway certificate and the upstream certificate. Usually, it is reflected by an asset not working via Android but is working through iOS and web browsers.

First Option

  1. Surf to the protected asset via Chrome browser.

  2. Click on the lock icon → Certificate is valid (to see the full certificate).

  3. Move to the Details tab → choose the lowest hierarchy and click Export. Save the file on the local machine.

  4. Login with SSH access to the AppSec Gateway machine

  5. Browse the /etc/cp/rpmanager/manualCerts and get the private key file, save it locally in the same folder as the file from section 3.

  6. Run both files with CertVerify according to the manual:

  7. Place the exported .pkg file under /etc/certs

  8. Login to the Infinity Portal and click Enforce.

Second Option

  1. Login with SSH to the AppSec Gateway machine

  2. Run echo | openssl s_client -showcerts -servername Protected URI> -connect 127.0.0.1:443 > proxy_certs.txt

  3. Run echo | openssl s_client -showcerts -servername Protected URI> -connect <Ppstream IP>:443 > upstream_certs.txt

  4. Check the difference between proxy_certs.txt and upstream_certs.txt

  5. In case they are different, fix it manually:

    1. Copy the certs from upstream_certs.txt file into /etc/cp/rpmanager/manualCerts/<Cert File Name>.pem

    2. Copy the certs from upstream_certs.txt file into /etc/certs/<Cert File Namee>.pem

  6. Run docker exec <nginx container> nginx -s reload

To avoid this from happening again after changing the certificates, we advise to use the CertVerify tool and adding the full chain to the certificate.

Store Certificates on Gateway - CloudGuard AppSec (checkpoint.com)
<
<