Merge branch 'master' of github.com:RIKRUS/MOTD
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1 @@
|
|||||||
|
.env
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
CONFIG_DIR=/etc/openvpn/ca
|
CONFIG_DIR=/etc/openvpn/ca
|
||||||
echo ""
|
echo ""
|
||||||
echo "List of OVPN keys:"
|
echo "List of OVPN keys:"
|
||||||
mapfile -t keys < <(sudo cat ${CONFIG_DIR}/pki/index.txt |grep ^V | grep -v server | grep -oh /CN=[[:alnum:]]* | sed -e 's/\/CN=//g')
|
mapfile -t keys < <(sudo cat ${CONFIG_DIR}/pki/index.txt | sed -ne 's/^V.*CN=\(\W\)*/\1/p' | grep -v server)
|
||||||
out="Name, Expires\n"
|
out="Name, Expires\n"
|
||||||
for i in "${!keys[@]}"; do
|
for i in "${!keys[@]}"; do
|
||||||
IFS=" " read name <<< ${keys[i]}
|
IFS=" " read name <<< ${keys[i]}
|
||||||
|
|||||||
@@ -37,5 +37,5 @@ sudo update-motd
|
|||||||
# Update 08.09.2021
|
# Update 08.09.2021
|
||||||
* Added module for track Openvpn keys (i use easyrsa for generating keys) and active connections
|
* Added module for track Openvpn keys (i use easyrsa for generating keys) and active connections
|
||||||
|
|
||||||
#P.S.
|
# P.S.
|
||||||
*In folder with openvpn config (`/etc/openvpn/`) locating directory with Certifiration Autority. Some files reading directly from CA (`/etc/openvpn/ca/pki/`)
|
* In folder with openvpn config (`/etc/openvpn/`) locating directory with Certifiration Autority. Some files reading directly from CA (`/etc/openvpn/ca/pki/`)
|
||||||
|
|||||||
Reference in New Issue
Block a user