From d9434e4b6e64e00eddb735a265f3fd86610d7004 Mon Sep 17 00:00:00 2001 From: sarthurdev <965089+sarthurdev@users.noreply.github.com> Date: Mon, 30 May 2022 20:52:22 +0200 Subject: pki: T3642: Add ability to import files into PKi configuration --- op-mode-definitions/pki.xml.in | 135 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/pki.xml.in b/op-mode-definitions/pki.xml.in index a1c55dcf4..346febec0 100644 --- a/op-mode-definitions/pki.xml.in +++ b/op-mode-definitions/pki.xml.in @@ -349,6 +349,141 @@ + + + Import an object + + + + + Import file into PKI configuration + + + + + Import CA certificate into PKI + + <name> + + + + + + Path to CA certificate file + + sudo ${vyos_op_scripts_dir}/pki.py --action import --ca "$4" --filename "$6" + + + + Path to private key file + + sudo ${vyos_op_scripts_dir}/pki.py --action import --ca "$4" --key-filename "$6" + + + + + + Import certificate into PKI + + <name> + + + + + + Path to certificate file + + sudo ${vyos_op_scripts_dir}/pki.py --action import --certificate "$4" --filename "$6" + + + + Path to private key file + + sudo ${vyos_op_scripts_dir}/pki.py --action import --certificate "$4" --key-filename "$6" + + + + + + Import certificate revocation list into PKI + + <CA name> + + + + + + Path to CRL file + + sudo ${vyos_op_scripts_dir}/pki.py --action import --crl "$4" --filename "$6" + + + + + + Import DH parameters into PKI + + <name> + + + + + + Path to DH parameters file + + sudo ${vyos_op_scripts_dir}/pki.py --action import --dh "$4" --filename "$6" + + + + + + Import key pair into PKI + + <name> + + + + + + Path to public key file + + sudo ${vyos_op_scripts_dir}/pki.py --action import --keypair "$4" --filename "$6" + + + + Path to private key file + + sudo ${vyos_op_scripts_dir}/pki.py --action import --keypair "$4" --key-filename "$6" + + + + + + Import OpenVPN keys into PKI + + + + + Import OpenVPN shared secret key into PKI + + <name> + + + + + + Path to shared secret key file + + sudo ${vyos_op_scripts_dir}/pki.py --action import --openvpn "$5" --filename "$7" + + + + + + + + + -- cgit v1.2.3