mirror of
https://github.com/bitwarden/server.git
synced 2025-01-22 21:51:22 +01:00
set nsubjectAltName od self signed certs
This commit is contained in:
parent
3bd5a82afa
commit
8f13361705
@ -31,6 +31,8 @@ namespace Bit.Setup
|
||||
Helpers.Exec("openssl req -x509 -newkey rsa:4096 -sha256 -nodes -days 365 " +
|
||||
$"-keyout /bitwarden/ssl/self/{Domain}/private.key " +
|
||||
$"-out /bitwarden/ssl/self/{Domain}/certificate.crt " +
|
||||
$"-reqexts SAN -extensions SAN " +
|
||||
$"-config <(cat /usr/lib/ssl/openssl.cnf <(printf '[SAN]\nsubjectAltName=DNS:{Domain}')) " +
|
||||
$"-subj \"/C=US/ST=Florida/L=Jacksonville/O=8bit Solutions LLC/OU=Bitwarden/CN={Domain}\"");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user