(path, private_key, **subject)
| 217 | |
| 218 | |
| 219 | def new_csr(path, private_key, **subject): |
| 220 | request = ( |
| 221 | x509.CertificateSigningRequestBuilder() |
| 222 | .subject_name(_new_subject(**subject)) |
| 223 | .sign( |
| 224 | private_key, |
| 225 | hashes.SHA256(), |
| 226 | backends.default_backend(), |
| 227 | ) |
| 228 | ) |
| 229 | with open(path + ".csr.pem", "wb") as f: |
| 230 | f.write(request.public_bytes(serialization.Encoding.PEM)) |
| 231 | |
| 232 | |
| 233 | def new_crl(path, issuer, cert): |
no test coverage detected