Forum Discussion

EricD_186141's avatar
EricD_186141
Icon for Altocumulus rankAltocumulus
Apr 27, 2017
Solved

Deleting PKCS12 Cert from an LTM via REST

Hi,

 

I am successfully using this REST API to create or update a PKCS12 cert on our LTMs.

 

curl -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{ "command": "install", "name":"test_cert.net", "fromLocalFile": "/var/tmp/test_cert.pfx", "passphrase": "MyTestCert1234" } ' ";

 

Can you tell me what the REST call would be to DELETE that cert?

 

Thanks.

 

  • The answer is: Use the /sys/crypto/cert and /sys/crypto/key REST calls to delete the cert.

     

    The back story is: Once a cert bundle (PKCS12 file) is uploaded to the LTM, it is unbundled into its cert and key pair and going forward from that they are then managed as if they had been uploaded as cert and key files.

     

1 Reply

  • The answer is: Use the /sys/crypto/cert and /sys/crypto/key REST calls to delete the cert.

     

    The back story is: Once a cert bundle (PKCS12 file) is uploaded to the LTM, it is unbundled into its cert and key pair and going forward from that they are then managed as if they had been uploaded as cert and key files.