#!/bin/bash set -e . lib/common LOCAL_CERTS_PATH=/etc/docker-auth/certs certs_path="$SERVICE_CONFIGSTORE$LOCAL_CERTS_PATH" mkdir -p "$certs_path" ( cd "$certs_path" openssl req -x509 -newkey rsa:2048 -new -nodes \ -keyout privkey.pem -out fullchain.pem \ -subj "/C=FR/ST=Paris/L=Paris/O=ACME/OU=IT Department/CN=[domain.tld]" chmod 600 privkey.pem ) cat <