Skip to content

Commit

Permalink
Add -legacy flag to openssl invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
amorask-bitwarden committed Sep 13, 2023
1 parent d3aceea commit 6bf9e84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/create_certificates_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

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
openssl pkcs12 -export -out identity_server_dev.pfx -inkey identity_server_dev.key -in identity_server_dev.crt \
openssl pkcs12 -export -legacy -out identity_server_dev.pfx -inkey identity_server_dev.key -in identity_server_dev.crt \
-certfile identity_server_dev.crt

security import ./identity_server_dev.pfx -k ~/Library/Keychains/Login.keychain

openssl req -x509 -newkey rsa:4096 -sha256 -nodes -keyout data_protection_dev.key -out data_protection_dev.crt \
-subj "/CN=Bitwarden Data Protection Dev" -days 3650
openssl pkcs12 -export -out data_protection_dev.pfx -inkey data_protection_dev.key -in data_protection_dev.crt \
openssl pkcs12 -export -legacy -out data_protection_dev.pfx -inkey data_protection_dev.key -in data_protection_dev.crt \
-certfile data_protection_dev.crt

security import ./data_protection_dev.pfx -k ~/Library/Keychains/Login.keychain
Expand Down

0 comments on commit 6bf9e84

Please sign in to comment.