It is easy and pretty straightforward, let's see how do we do it -
Command update-ca-trust can change a little bit based on the type of certificate you are trying to import in the image, You can find the detailed info on MAN page of the command.
Now you can use this image within the enterprise and with proof (kind of) that this image is generated/created in org.
- Generate the Certificate for your Enterprize, these certificates should be generalized or specific to the applicaton.
- Once generated, you need to add the below steps in dockerfile to import the certificate. Assuming, your certificates are residing in a folder named "certs"
- Add below lines in dockerfile with all other lines
- COPY certs/* temp/
- RUN cp temp/*.cer /etc/pki/ca-trust/source/anchors/ && update-ca-trust
- You can combine these 2 steps with other steps to avoid the extra layer in your image
Now you can use this image within the enterprise and with proof (kind of) that this image is generated/created in org.
This is all for today, Will see you next with a new post, Till then.. Happy Learning !!
Like the below page to get the update
Facebook Page Facebook Group Twitter Feed Telegram Group
Facebook Page Facebook Group Twitter Feed Telegram Group
No comments:
Post a Comment