- Start migration of dns, network & vpn lib,

- Start migration of rx3_net_adm.
This commit is contained in:
2026-04-13 16:35:39 +02:00
parent 0c05cfd6c0
commit 6d2fd44dba
15 changed files with 132 additions and 30 deletions

29
usr/sbin/cert_dump Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/bash
OPENVPN_DIR=/etc/openvpn
type=$1
host=$2
case "${type}"
in
"ca")
cat ${OPENVPN_DIR}/tls/certs/ca.crt
;;
"tc")
cat ${OPENVPN_DIR}/tls/private/tc.key
;;
"key")
cat ${OPENVPN_DIR}/tls/private/${host}.key
;;
"csr")
cat ${OPENVPN_DIR}/tls/certs/${host}.csr
;;
"crt")
cat ${OPENVPN_DIR}/tls/certs/${host}.crt
;;
esac