I have some questions regarding the possibility to import private-keys through restman API of Layer7:
- How can I create the text content of <l7:Pkcs12Data> without manually import/export the key first?
I ask because the content of the element <l7:Pkcs12Data> inside <l7:PrivateKeyImportContext> is text. PKCS12 is binary and when I try to simply convert it to Base64 the result is not the same as when I manually import the private key and then export it through restman.
- Is it possible to import a private-key and at the same time mark it as default SSL key (special purpose)?
I would like to do this in one request.