1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-27 17:47:37 +01:00
bitwarden-server/dev/create_certificates_windows.ps1

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
438 B
PowerShell
Raw Normal View History

# Script for generating and installing the Bitwarden development certificates on Windows.
$params = @{
'KeyAlgorithm' = 'RSA';
'KeyLength' = 4096;
'NotAfter' = (Get-Date).AddDays(3650);
'CertStoreLocation' = 'Cert:\CurrentUser\My';
};
$params['Subject'] = 'CN=Bitwarden Identity Server Dev';
New-SelfSignedCertificate @params;
$params['Subject'] = 'CN=Bitwarden Data Protection Dev';
New-SelfSignedCertificate @params;