Support for the HTTPS protocol

ABBYY OCR Container supports encrypted connections via the HTTPS protocol. To enable it, you need to provide an SSL certificate, which will be used for encrypting the connection. To do this, follow the steps below:

  1. Mount a folder to the container where the certificate will be located, for example, "/mnt/certificate".

2. Place the certificate in PFX format into this folder.

3. Set the following environment variables for the container:

Name Description
Network__HttpsCertPath The folder where the SSL certificate file is stored.
Network__HttpsCertPassword The password for the SSL certificate.
Network__HttpDisabled Specifies whether the unencrypted HTTP endpoint will be disabled (optional).

For example:

Network__HttpsCertPath=/mnt/certificate/crt.pfx
    Network__HttpsCertPassword=%password for your certificate%
    Network__HttpDisabled=true
  

The container will then enable the HTTPS endpoint on port 5001 by default. During the startup process, you may see the following log messages:

Use certificate for HTTPS 
    Http disabled: True
  

The first message indicates that the container is now using encrypted connections and the second message shows the status of the HTTP endpoint.

Note: On the demo page, you can find an example Helm chart for deploying the container to a Kubernetes cluster with HTTPS enabled.

2/19/2024 10:23:36 AM

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.