()
| 113 | |
| 114 | |
| 115 | def create_domain_key(): |
| 116 | with open(os.devnull, "wb") as devnull: |
| 117 | out = subprocess.check_output(["openssl", "genrsa", "2048"], stderr=devnull) |
| 118 | with open(os.path.join(gettempdir(), "domain.key"), "wb") as f: |
| 119 | f.write(out) |
| 120 | |
| 121 | |
| 122 | def create_domain_csr(domain): |