mirror of
https://github.com/bitwarden/directory-connector
synced 2025-12-05 23:53:21 +00:00
11 lines
394 B
Bash
Executable File
11 lines
394 B
Bash
Executable File
if ! [ -x "$(command -v mkcert)" ]; then
|
|
echo 'Error: mkcert is not installed. Install mkcert first and then re-run this script.'
|
|
echo 'e.g. brew install mkcert'
|
|
exit 1
|
|
fi
|
|
|
|
mkcert -install
|
|
mkdir -p ./openldap/certs
|
|
cp "$(mkcert -CAROOT)/rootCA.pem" ./openldap/certs/rootCA.pem
|
|
mkcert -key-file ./openldap/certs/openldap-key.pem -cert-file ./openldap/certs/openldap.pem localhost openldap
|