Developer/Tester need TLS certificates now and then for testing and development of product supporting secure communucation. Following is the docker-image based procedure to quickly create the TLS certificates.
- clone the git repo (https://github.com/deepak-ghuge/create-tls-certificates.git)
- docker build -t createtlscert
- docker run -it –rm -v <hostdir>:/crt createtlscert <ip address>
eg : docker run -it –rm -v /tmp/crt:/crt createtlscert 192.168.122.1
TLS certificates will be created for CN=<ip address> and copied in the specified <hostdir> directory.
Note – Creating TLS certificate using this procedure is only meant for Test purpose only.