Configuring Custom Certificates for Remote URLs

Information

PSPDFKit Server has been deprecated and replaced by PSPDFKit Document Engine. All PSPDFKit Server and PSPDFKit for Web Server-Backed licenses will work as before and be supported until 15 May 2024 (we will contact you about license migration). To start using Document Engine, refer to the migration guide. With Document Engine, you’ll have access to robust new capabilities (read the blog for more information).

PSPDFKit Server API enables adding documents from a URL. By default, these certificates are used for verifying a remote URL HTTPS server.

However, it’s possible to provide an alternative certificate chain for verification. To do so, mount the certificate file into your Docker container and configure it via DOWNLOADER_CERT_FILE_PATH:

pspdfkit:
  environment:
    DOWNLOADER_CERT_FILE_PATH: /custom-certificate/ca.pem
  volumes:
    - /path/to/my/ca.pem:/custom-certificate/ca.pem:ro

Ensure the certificates are in PEM format.