Jump to content

SSL Certificates: Difference between revisions

From NixOS Wiki
Serif (talk | contribs)
Created page.
 
Pigs (talk | contribs)
m Add category security and networking
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
To install SSL Certificates, use one of the following two options:
TLS/SSL Certificates, also called [[wikipedia:Public_key_certificate|public key certificates]], are files that verify the authenticity of a website or other online entity. They contain the public key of the certificate holder and are issued by trusted certificate authorities to enable secure, encrypted communications between clients and servers.


```nix
== Installation ==


security.pki.certificates = [ "<insert_certificate_text_here>" ]
To add additional trusted root certificates, use one or both of the following options:<syntaxhighlight lang="nix">
security.pki.certificates = [ "<insert_certificate_text_here>" ];


security.pki.certificateFiles = [ "/path/to/cert1" "/path/to/cert2" ]
security.pki.certificateFiles = [ "/path/to/cert1" "/path/to/cert2" ];
</syntaxhighlight>


```
The first option is a list of strings, whereas the second is a list of filesystem paths.


The first option is a list of strings, whereas the second is a list of filesystem paths.
[[Category:Security]]
[[Category:Networking]]

Latest revision as of 16:47, 17 May 2025

TLS/SSL Certificates, also called public key certificates, are files that verify the authenticity of a website or other online entity. They contain the public key of the certificate holder and are issued by trusted certificate authorities to enable secure, encrypted communications between clients and servers.

Installation

To add additional trusted root certificates, use one or both of the following options:

security.pki.certificates = [ "<insert_certificate_text_here>" ];

security.pki.certificateFiles = [ "/path/to/cert1" "/path/to/cert2" ];

The first option is a list of strings, whereas the second is a list of filesystem paths.