summaryrefslogtreecommitdiff
path: root/modules/core
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core')
-rw-r--r--modules/core/networking/default.nix1
-rw-r--r--modules/core/networking/pki.nix47
2 files changed, 48 insertions, 0 deletions
diff --git a/modules/core/networking/default.nix b/modules/core/networking/default.nix
index ebdcd55..b8f221d 100644
--- a/modules/core/networking/default.nix
+++ b/modules/core/networking/default.nix
@@ -2,6 +2,7 @@
{
imports = [
./firewall
+ ./pki.nix
./resolved.nix
./tailscale.nix
];
diff --git a/modules/core/networking/pki.nix b/modules/core/networking/pki.nix
new file mode 100644
index 0000000..c781040
--- /dev/null
+++ b/modules/core/networking/pki.nix
@@ -0,0 +1,47 @@
+{ pkgs, ... }:
+{
+ security.pki = {
+ certificateFiles = [
+ (pkgs.fetchurl {
+ url = "https://nextdns.io/ca";
+ hash = "sha256-yl+2q4H/a8SLGv4Mt+g8+03uy9ihZxACbsj3uCTog34=";
+ })
+ ];
+
+ caCertificateBlacklist = [
+ "AC RAIZ FNMT-RCM SERVIDORES SEGUROS"
+ "Autoridad de Certificacion Firmaprofesional CIF A62634068"
+
+ # China Financial Certification Authority
+ "CFCA EV ROOT"
+
+ # Chunghwa Telecom Co., Ltd
+ "ePKI Root Certification Authority"
+ "HiPKI Root CA - G1"
+
+ # Dhimyotis
+ "Certigna"
+ "Certigna Root CA"
+
+ # GUANG DONG CERTIFICATE AUTHORITY
+ "GDCA TrustAUTH R5 ROOT"
+
+ # Hongkong Post
+ "Hongkong Post Root CA 3"
+
+ # iTrusChina Co.,Ltd.
+ "vTrus ECC Root CA"
+ "vTrus Root CA"
+
+ # Krajowa Izba Rozliczeniowa S.A.
+ "SZAFIR ROOT CA2"
+
+ # NetLock Kft.
+ "NetLock Arany (Class Gold) Főtanúsítvány"
+
+ # TAIWAN-CA
+ "TWCA Root Certification Authority"
+ "TWCA Global Root CA"
+ ];
+ };
+}