mirror of
https://github.com/MUnique/OpenMU
synced 2026-08-15 14:32:19 -04:00
13 lines
358 B
Bash
13 lines
358 B
Bash
#!/bin/bash
|
|
|
|
function generate_certificates {
|
|
docker run --rm --entrypoint "" \
|
|
-v $PWD/certificates:/certificates \
|
|
mcr.microsoft.com/dotnet/sdk:5.0 \
|
|
sh -c "dotnet dev-certs https --clean && dotnet dev-certs https -ep /certificates/aspnetapp.pfx -p ${1}"
|
|
|
|
if [ $? == 0 ]; then
|
|
export CERTIFICATE_PASSWORD=${1}
|
|
echo "success"
|
|
fi
|
|
}
|