nvflare.tool.cert.fingerprint module
Certificate fingerprint helpers for distributed provisioning.
- cert_fingerprint_sha256(cert) str[source]
Return an OpenSSL-style SHA256 fingerprint for a loaded x509 certificate.
- normalize_sha256_fingerprint(value: str) str[source]
Normalize common SHA256 certificate fingerprint forms to
SHA256:AA:BB....Accepted forms include: -
sha256 Fingerprint=AA:BB:...fromopenssl x509 -fingerprint -sha256-SHA256:AA:BB:...-SHA256=AA:BB:...- plain 64-character hex stringsReturns an empty string when the value is not a valid SHA256 fingerprint.