Skip to content
Advertisement

How to configure Key for IdentityServer4 on Linux

I have an asp.net core app with IdentityServer4. In production it requires a key.

On Windows Server, I deployed it OK – created a self-signed certificate and added LocalMacine/my as the key location.

How can I do the same on Linux?

appsettings.json config on Windows – need syntax for Linux:

JavaScript

Advertisement

Answer

Can you not just refer to your certificate as a .pfx file using a appsettings file like:

JavaScript

Alternatively, when I deploy IdentityServer as a Linux container, I store my certificate in Azure Key Vault.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement