Lines Matching refs:fd
250 with open(cert_file, "wb") as fd:
251 fd.write(creds.cert_pem)
254 fd.write(c.cert_pem)
256 fd.write(creds.pkey_pem)
258 with open(pkey_file, "wb") as fd:
259 fd.write(creds.pkey_pem)
260 with open(comb_file, "wb") as fd:
261 fd.write(creds.cert_pem)
264 fd.write(c.cert_pem)
265 fd.write(creds.pkey_pem)
278 with open(chain_file, "wb") as fd:
280 fd.write(c.cert_pem)
302 with open(fpath) as fd:
303 return x509.load_pem_x509_certificate("".join(fd.readlines()).encode())
306 with open(fpath) as fd:
307 return load_pem_private_key("".join(fd.readlines()).encode(), password=None)