Function - generate_root_cert#
- openfl.cryptography.ca.generate_root_cert(days_to_expiration=365)[source]#
Generate a root certificate and its corresponding private key.
- Parameters:
days_to_expiration (int, optional) – The number of days until the certificate expires. Defaults to 365.
- Returns:
The private key and the certificate.
- Return type:
Tuple[RSAPrivateKey, Certificate]