aboutsummaryrefslogtreecommitdiff
path: root/scripts/os/freebsd/20-root-ca
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/os/freebsd/20-root-ca')
-rw-r--r--scripts/os/freebsd/20-root-ca12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/os/freebsd/20-root-ca b/scripts/os/freebsd/20-root-ca
new file mode 100644
index 0000000..1f88c69
--- /dev/null
+++ b/scripts/os/freebsd/20-root-ca
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# Create local CA certificates directory.
+install_directory -m 0755 \
+ /usr/local/etc \
+ /usr/local/etc/ssl \
+ /usr/local/etc/ssl/certs
+
+# Install our root CA.
+install_ca_certificate "$site_cacert_path"
+
+certctl rehash