Certificate policies can be validated with an script like the following:
#!/bin/bash
certificate_depth=$1
policy=1.3.6.1.4.1.32473.1
if [ $certificate_depth -eq 0 ]; then
openssl verify -CAfile /etc/openvpn/ca.crt -explicit_policy -policy $policy $peer_cert || exit 1
fi
And the following OpenVPN configuration:
tls-verify /path/to/tls-verify-cert-policy.sh
Tested with With OpenVPN 2.4.4-2ubuntu1.3.