Function - generate_csr#
- openfl.cryptography.participant.generate_csr(common_name, server=False)[source]#
Issue a Certificate Signing Request (CSR) for a server or a client.
- Parameters:
common_name (str) – The common name for the certificate.
server (bool, optional) – A flag to indicate if the CSR is for a server. If False, the CSR is for a client. Defaults to False.
- Returns:
- The private key and
the CSR.
- Return type:
Tuple[RSAPrivateKey, CertificateSigningRequest]