Commit 27c687bd authored by Lindsay Harvey's avatar Lindsay Harvey
Browse files

Fix ovs list-cert function not showing issued certificates properly

parent aeac5382
Pipeline #1618 passed with stage
in 13 seconds
......@@ -214,8 +214,8 @@ y" | \
function get_current_certificates () {
echo "Index User <email address>"
grep ^V /var/lib/openvpn-server/openssl/index.txt | awk '{print $3 "/" $5}' | sed "s/[A-Za-z]*=//g" | awk -F "/" '{print $1 "\t" $6 " <" $7 ">"}'
#grep ^V /var/lib/openvpn-server/openssl/index.txt | awk '{print $3 "/" $5}' | sed "s/[A-Za-z]*=//g" | awk -F "/" '{print $1 "\t" $6 " <" $7 ">"}'
grep ^V /var/lib/openvpn-server/openssl/index.txt | awk '!($1="")($2="")($4="")' | sed 's/^[ \t]*//' | sed 's/ *//' | sed "s/[A-Za-z]*=//g" | awk -F "/" '{print $1 "\t" $6 " <" $7 ">"}'
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment