REST API
8.0.0
REST API for SafeNet Luna Network HSMs
|
Gets a certificate signing request.
None
Data buffer containing the file contents.
Unexpected error
GET https://1.2.3.4:8443/api/lunasa/webServer/csr
{ }
This resource returns the contents of a file in a buffer.
Below is an example of getting the contents in python. We iterate through the contents and save them to a file.
r = requests.get("/api/lunasa/webServer/csr", stream=True, cookies=cookies, verify=False, allow_redirects=False) with open("ssl.csr", 'wb') as csr: for chunk in r.iter_content(chunk_size=1024): if chunk: csr.write(chunk) csr.close()