(csr: Any)
| 316 | |
| 317 | @staticmethod |
| 318 | def _add_ca_usages(csr: Any) -> Any: |
| 319 | return csr.add_extension( |
| 320 | x509.BasicConstraints(ca=True, path_length=9), |
| 321 | critical=True, |
| 322 | ).add_extension( |
| 323 | x509.KeyUsage( |
| 324 | digital_signature=True, |
| 325 | content_commitment=False, |
| 326 | key_encipherment=False, |
| 327 | data_encipherment=False, |
| 328 | key_agreement=False, |
| 329 | key_cert_sign=True, |
| 330 | crl_sign=True, |
| 331 | encipher_only=False, |
| 332 | decipher_only=False), |
| 333 | critical=True |
| 334 | ).add_extension( |
| 335 | x509.ExtendedKeyUsage([ |
| 336 | ExtendedKeyUsageOID.CLIENT_AUTH, |
| 337 | ExtendedKeyUsageOID.SERVER_AUTH, |
| 338 | ExtendedKeyUsageOID.CODE_SIGNING, |
| 339 | ]), |
| 340 | critical=True |
| 341 | ) |
| 342 | |
| 343 | @staticmethod |
| 344 | def _add_leaf_usages(csr: Any, domains: List[str], issuer: Credentials) -> Any: |
no outgoing calls
no test coverage detected