From 6aca273d89ed4c72ea556a0a7425f4f0c30c8602 Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Sun, 5 Jul 2015 21:07:04 -0700 Subject: [PATCH] getclient: Use openssl to prune comments * The EasyRSA tools create a certificate file with all the metadata readable. This makes the config file larger then it needs to be, so prune it. * Retrieve text files with `openssl x509 -in -noout -text` --- bin/ovpn_getclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ovpn_getclient b/bin/ovpn_getclient index e9dc01f..4d57a27 100755 --- a/bin/ovpn_getclient +++ b/bin/ovpn_getclient @@ -45,7 +45,7 @@ remote $OVPN_CN $OVPN_PORT $OVPN_PROTO $(cat $EASYRSA_PKI/private/${cn}.key) -$(cat $EASYRSA_PKI/issued/${cn}.crt) +$(openssl x509 -in $EASYRSA_PKI/issued/${cn}.crt) $(cat $EASYRSA_PKI/ca.crt)