mirror of
https://github.com/bitwarden/server.git
synced 2025-06-05 18:50:35 -05:00
generate a self signed cert if not using ssl
This commit is contained in:
parent
448e536ba4
commit
a10d0f24ee
@ -221,9 +221,6 @@ namespace Bit.Setup
|
|||||||
private static void MakeCerts()
|
private static void MakeCerts()
|
||||||
{
|
{
|
||||||
if(!_ssl)
|
if(!_ssl)
|
||||||
{
|
|
||||||
Console.Write("(!) Do you want to generate a self-signed SSL certificate? (y/n): ");
|
|
||||||
if(Console.ReadLine().ToLowerInvariant() == "y")
|
|
||||||
{
|
{
|
||||||
Directory.CreateDirectory($"/bitwarden/ssl/self/{_domain}/");
|
Directory.CreateDirectory($"/bitwarden/ssl/self/{_domain}/");
|
||||||
Console.WriteLine("Generating self signed SSL certificate.");
|
Console.WriteLine("Generating self signed SSL certificate.");
|
||||||
@ -233,7 +230,6 @@ namespace Bit.Setup
|
|||||||
$"-out /bitwarden/ssl/self/{_domain}/certificate.crt " +
|
$"-out /bitwarden/ssl/self/{_domain}/certificate.crt " +
|
||||||
$"-subj \"/C=US/ST=New York/L=New York/O=8bit Solutions LLC/OU=bitwarden/CN={_domain}\"");
|
$"-subj \"/C=US/ST=New York/L=New York/O=8bit Solutions LLC/OU=bitwarden/CN={_domain}\"");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if(_letsEncrypt)
|
if(_letsEncrypt)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user