Ask Your Question
3

How can a p12 certificate be incorporated into the KrakenD gateway?

asked 2023-05-20 23:30:58 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-05-20 23:41:01 +0000

huitzilopochtli gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-20 23:30:58 +0000

Seen: 15 times

Last updated: May 20 '23