validate_proxy

gwdatafind.utils.validate_proxy(path)

Validate an X509 proxy certificate file.

This function tests that the proxy certificate is RFC 3820 compliant and is not expired.

Parameters

path (str) – the path of the X509 file on disk.

Returns

valid (True) – if the certificate valides.

Raises

RuntimeError – if the certificate cannot be validated.