cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Who rated this post

L2 Linker

I think I have a resolution.

I exported the cert from its original place, but this time as a BASE64 .pem file, exporting private key and using a passphrase.

Using the -k (insecure) with curl, the import was actually successful.

 

$certFile = "wildcard.pem"

$apiurl = "https://" + $wanip + "//api/?key=" + $apiKey + "&type=import&category=keypair&certificate-name=$certName&format=pem&passphrase=$passPhrase"

 

C:\Windows\System32\curl.exe -k -F "file=@$CertFile" $apiurl

 

<response status="success"><result>Successfully imported WILDCARD-CERT into candidate configuration</result></response>

 

I do not know why the pkcs12 format doesn’t work.  It seems that I can ask my end users to supply the cert in .pem format. This should work just fine.

Who rated this post