#!/bin/sh set +x for p in http https ; do for h in \ ://swupdate.openvpn.net/community/releases/openvpn-2.4.3.tar.gz \ ://swupdate.openvpn.net/community/releases/openvpn-2.4.3.tar.gz.asc \ ; do curl --cert-status -v ${p}${h} -o ${p}-${h//*\/} -D ${p}-${h//*\/}.headers done done ls -la md5sum *openvpn-2.4.3.tar.gz* gpg --verify http-openvpn-2.4.3.tar.gz.asc http-openvpn-2.4.3.tar.gz gpg --verify https-openvpn-2.4.3.tar.gz.asc https-openvpn-2.4.3.tar.gz