Configuring Custom Certificates for Remote URLs
PSPDFKit Server has been deprecated and replaced by Document Engine. 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.