Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Fix dataprotection certificate errors (#364)

Leendert de Borst027b95da1580
diff --git a/docker-compose.yml b/docker-compose.yml
index 6a66dd64d..e870a1ab2 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -21,7 +21,7 @@ services:
context: .
dockerfile: src/AliasVault.Client/Dockerfile
volumes:
- - ./logs:/src/msbuild-logs:rw
+ - ./logs/msbuild:/src/msbuild-logs:rw
expose:
- "3000"
restart: always
@@ -37,7 +37,7 @@ services:
- "3001"
volumes:
- ./database:/database:rw
- - ./certificates/app:/certificates:rw
+ - ./certificates/app:/certificates/app:rw
- ./logs:/logs:rw
env_file:
- .env
@@ -52,7 +52,7 @@ services:
- "3002"
volumes:
- ./database:/database:rw
- - ./certificates/app:/certificates:rw
+ - ./certificates/app:/certificates/app:rw
- ./logs:/logs:rw
restart: always
env_file:
diff --git a/src/Utilities/Cryptography/AliasVault.Cryptography.Server/DataProtectionExtensions.cs b/src/Utilities/Cryptography/AliasVault.Cryptography.Server/DataProtectionExtensions.cs
index 85e2c32cc..c43e15e92 100644
--- a/src/Utilities/Cryptography/AliasVault.Cryptography.Server/DataProtectionExtensions.cs
+++ b/src/Utilities/Cryptography/AliasVault.Cryptography.Server/DataProtectionExtensions.cs
@@ -44,7 +44,7 @@ public static class DataProtectionExtensions
}
else
{
- cert = X509CertificateLoader.LoadPkcs12FromFile(certPath, certPassword);
+ cert = X509CertificateLoader.LoadPkcs12FromFile(certPath, certPassword, X509KeyStorageFlags.EphemeralKeySet | X509KeyStorageFlags.Exportable);
}
services.AddDataProtection()