Securing SanteDB Configuration
Last updated
Was this helpful?
Last updated
Was this helpful?
The santedb.config.xml
file contains sensitive information such as database connection strings, certificate and digital signing keys, shared secrets, etc. This information can be protected in SanteDB via encryption.
When encrypting your configuration file, certain sections will become protected, and their contents will appear in the configuration file as:
If you are using the , will be prompted on configuration save on Windows to select a configuration protection certificate. On Linux, or Docker the configuraiton is performed manually. To do this, copy the thumbprint of the certificate with which you'll be protecting your configuration and run:
You will be prompted for the thumbprint of your certificate, and your configuration file will be encrypted.
You should not share encrypted configuration files between servers. If your configuration file is on a shared drive between application servers, you must ensure that the private key for the certificate is available on each of the servers.