mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-10-23 04:51:57 +00:00
13 lines
265 B
Bash
13 lines
265 B
Bash
#!/bin/bash
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
cd $DIR
|
|
|
|
if [ -s key.pem ]
|
|
then
|
|
echo "Certificate already exists"
|
|
exit
|
|
else
|
|
openssl req -x509 -batch -nodes -days 365 -newkey rsa:2048 -keyout key.pem -out cert.pem
|
|
fi
|