1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-16 01:51:21 +01:00

Don't use dev licensing cert if self-hosted (#1216)

This commit is contained in:
Thomas Rittson 2021-03-18 07:21:00 +10:00 committed by GitHub
parent 5876820994
commit d0f7750650
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,8 @@ namespace Bit.Core.Services
_logger = logger;
_globalSettings = globalSettings;
var certThumbprint = environment.IsDevelopment() ? "207E64A231E8AA32AAF68A61037C075EBEBD553F" :
var certThumbprint = environment.IsDevelopment() && !_globalSettings.SelfHosted ?
"207E64A231E8AA32AAF68A61037C075EBEBD553F" :
"B34876439FCDA2846505B2EFBBA6C4A951313EBE";
if (_globalSettings.SelfHosted)
{