Forum Discussion
dfosborne2_2224
Nimbostratus
Apr 20, 2014Upload SSL keys/certs via iControl REST API?
Is there a PUT method (but I'll take a POST!) to upload SSL keys/certs into BigIP LTM 11.5? Im moving from ancient 9.4 code and would love to be able to pull down my keys and certs and upload them vi...
Kevin_Stewart
Employee
Apr 21, 2014-
Upload the certs and keys to the BIG-IP - some temporary directory will do.
-
REST call to create certificate and key:
curl -sk -u admin:admin -H "Content-Type: application/json" -X POST https://x.x.x.x/mgmt/tm/sys/crypto/cert -d '{"command":"install","name":"test","from-local-file":"/var/tmp/test.crt"}' curl -sk -u admin:admin -H "Content-Type: application/json" -X POST https://x.x.x.x/mgmt/tm/sys/crypto/key -d '{"command":"install","name":"test","from-local-file":"/var/tmp/test.key"}' -
Create the client SSL profile:
curl -sk -u admin:admin -H "Content-Type: application/json" -X POST https://x.x.x.x/mgmt/tm/ltm/profile/client-ssl -d '{"name":"test","cert":"test.crt","key":"test.key"}'
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects