Skip to content
Advertisement

How to add many SSL certificates for Java application inside docker?

I’m new in docker. I want to add several certificates for Java application inside Docker. I’m using this code in Dockerfile:

JavaScript

and it works fine, but only for one certificate. How I can add all certificates from /files folder with one line command or in some cycle or maybe with bash file?

UPDATED: I used next bash to add certificates:

JavaScript

but got next error: “keytool: command not found”. The command keytool works fine when I run it in the docker container.

Advertisement

Answer

In dockerfile call bash file:

JavaScript

Bash script:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement