summaryrefslogtreecommitdiff
path: root/sys/pki
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-07-28 00:18:39 -0600
committerAlejandro Soto <alejandro@34project.org>2024-07-28 00:18:39 -0600
commit9010a54874fa52fbeab95a5952dbaa420fe79331 (patch)
tree914330f41d54d2e65683e0e33220e90101902ad8 /sys/pki
parentf7d895d15b1b113fe147a83693818deec8db6852 (diff)
sys/pki: move certificate list to certs.nix
Diffstat (limited to '')
-rw-r--r--sys/pki/ca.nix30
-rw-r--r--sys/pki/certs.nix31
-rw-r--r--sys/pki/default.nix1
3 files changed, 32 insertions, 30 deletions
diff --git a/sys/pki/ca.nix b/sys/pki/ca.nix
index 8814338..70640be 100644
--- a/sys/pki/ca.nix
+++ b/sys/pki/ca.nix
@@ -87,34 +87,4 @@ in
type = certsType null;
readOnly = true;
};
-
- config.local.pki.ca = {
- home = {
- crl = ./public/home-crl.pem;
- cert = ./public/home-ca.pem;
- issuer = "root";
-
- leaves = {
- user-firefox.cert = ./public/home-user-firefox.pem;
- };
- };
-
- mail = {
- crl = ./public/mail-crl.pem;
- cert = ./public/mail-ca.pem;
- issuer = "root";
-
- leaves = {
- kiev.cert = ./public/mail-kiev.pem;
- larsa.cert = ./public/mail-larsa.pem;
- };
- };
-
- root = {
- crl = ./public/root-crl.pem;
- cert = ./public/root-ca.pem;
- issuer = null;
- leaves = { };
- };
- };
}
diff --git a/sys/pki/certs.nix b/sys/pki/certs.nix
new file mode 100644
index 0000000..c191fc5
--- /dev/null
+++ b/sys/pki/certs.nix
@@ -0,0 +1,31 @@
+{
+ config.local.pki.ca = {
+ home = {
+ crl = ./public/home-crl.pem;
+ cert = ./public/home-ca.pem;
+ issuer = "root";
+
+ leaves = {
+ user-firefox.cert = ./public/home-user-firefox.pem;
+ };
+ };
+
+ mail = {
+ crl = ./public/mail-crl.pem;
+ cert = ./public/mail-ca.pem;
+ issuer = "root";
+
+ leaves = {
+ kiev.cert = ./public/mail-kiev.pem;
+ larsa.cert = ./public/mail-larsa.pem;
+ };
+ };
+
+ root = {
+ crl = ./public/root-crl.pem;
+ cert = ./public/root-ca.pem;
+ issuer = null;
+ leaves = { };
+ };
+ };
+}
diff --git a/sys/pki/default.nix b/sys/pki/default.nix
index 75f7e52..30519af 100644
--- a/sys/pki/default.nix
+++ b/sys/pki/default.nix
@@ -1,6 +1,7 @@
{
imports = [
./ca.nix
+ ./certs.nix
./by-path.nix
];
}