#!/bin/bash
# ===========================================================================
# Copyright (c) 2021 Eclipse Foundation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
#    Christopher Guindon (Eclipse Foundation)
# ==========================================================================

# Generate ssl cert for jwilder/nginx-proxy
mkdir -pv ../_shared/certs
if [[ ! -f ../_shared/certs/dev.docker.key ]] || [[ ! -f  ../_shared/certs/dev.docker.crt ]]
then
  openssl req -x509 -nodes -days 365 -newkey rsa:4096 -keyout ../_shared/certs/dev.docker.key -out ../_shared/certs/dev.docker.crt
fi
