2021-10-13 19:30:03 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
openssl req -x509 -newkey rsa:4096 -sha256 -nodes -keyout identity_server_dev.key -out identity_server_dev.crt \
|
|
|
|
-subj "/CN=Bitwarden Identity Server Dev" -days 3650
|
2023-09-13 21:17:19 +02:00
|
|
|
openssl pkcs12 -export -legacy -out identity_server_dev.pfx -inkey identity_server_dev.key -in identity_server_dev.crt \
|
2021-10-13 19:30:03 +02:00
|
|
|
-certfile identity_server_dev.crt
|
|
|
|
|
|
|
|
security import ./identity_server_dev.pfx -k ~/Library/Keychains/Login.keychain
|
|
|
|
|
|
|
|
identity=($(openssl x509 -in identity_server_dev.crt -outform der | shasum -a 1 | tr a-z A-Z));
|
|
|
|
|
|
|
|
echo "Certificate fingerprints:"
|
|
|
|
|
|
|
|
echo "Identity Server Dev: ${identity}"
|