To incorporate a p12 certificate into the KrakenD gateway, follow these steps:
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.
Copy the PEM certificate to the certs
folder in your KrakenD project directory.
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.
Save the configuration file and restart the KrakenD gateway.
Your KrakenD gateway should now be using the p12 certificate incorporated in the PEM format.
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
Asked: 2023-05-20 23:30:58 +0000
Seen: 15 times
Last updated: May 20 '23