Perform the following steps to modify server certificates using REST container:
Run the following command to copy the new server certificate (for e.g. new-keys.pfx) in any location of your container:
docker cp /path/to/new-keys.pfx <container_id/name>:/tmp/new-keys.pfx
Login to your container using the following command:
docker exec -it <container_name> bash
Run NLPCERT to store the keys.
LD_LIBRARY_PATH=/opt/novell/lib64/:/opt/novell/eDirectory/lib64/:/opt/netiq/common/openssl/lib64/ /opt/novell/eDirAPI/sbin/nlpcert -i /tmp/new-keys.pfx -o /etc/opt/novell/eDirAPI/conf/ssl/private/cert.pem
The above command will also prompt you to enter the server certificate password. Enter your password.
Exit the container console using the following command:
exit
Restart the container
docker restart <container name>