pub fn check_device_cert(cert_path: impl AsRef<Path>) -> Result<()>
Expand description

Verify that the PEM encoded certificate at the given path meets IEEE 2030.5 “Device Certificate” requirements.

Newly purchased or acquired certificates in an IEEE 2030.5 certificate chain will satisfy these requirements.

Currently this function isn’t called when instantiating a Client nor a [ClientNotifServer`], but that may change in the future.

A valid ‘device certificate’ must be used by a ClientNotifServer, i.e. NOT a self signed certificate “The use of TLS (IETF RFC 5246) requires that all hosts implementing server functionality SHALL use a device certificate whereby the server presents its device certificate as part of the TLS handshake”

See section 6.11.8.3.3 for more.