Ask Your Question

Revision history [back]

To incorporate a p12 certificate into the KrakenD gateway, follow these steps:

  1. Convert the p12 certificate to a PEM format. You can use openssl to convert the certificate by running the following command:

    openssl pkcs12 -in mycert.p12 -out mycert.pem -nodes
    

    Replace mycert.p12 with the name of your p12 certificate and mycert.pem with the desired name of your PEM certificate.

  2. Copy the PEM certificate to the certs folder in your KrakenD project directory.

  3. Edit the KrakenD configuration file (krakend.json) to include the PEM certificate. Add the following to the extra_config section of the file:

    "tls": {
     "certificate": "/path/to/mycert.pem",
     "certificate_key": "/path/to/mykey.pem"
    }
    

    Replace /path/to/mycert.pem with the path to your PEM certificate and /path/to/mykey.pem with the path to your PEM private key.

  4. Save the configuration file and restart the KrakenD gateway.

Your KrakenD gateway should now be using the p12 certificate incorporated in the PEM format.