MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / gen_req

Function gen_req

docker/test/test_https.py:84–100  ·  view source on GitHub ↗

Generate TLS certificate request for testing

()

Source from the content-addressed store, hash-verified

82
83
84def gen_req():
85 """
86 Generate TLS certificate request for testing
87 """
88
89 logging.info('Generating test certificate request')
90 key = EVP.PKey()
91 req = X509.Request()
92 rsa = RSA.gen_key(1024, 65537, callback)
93 key.assign_rsa(rsa)
94 req.set_pubkey(key)
95 name = req.get_subject()
96 name.C = 'US'
97 name.CN = 'minifi-listen'
98 req.sign(key, 'sha256')
99
100 return req, key

Callers 1

gen_certFunction · 0.85

Calls 1

infoMethod · 0.45

Tested by

no test coverage detected