Forum Discussion
Maverick_80689
Nimbostratus
Mar 14, 2016"code":404,"message":"Failed to open REST when trying to install certificate
I am trying to install SSL certificate and key using a rest call:
https://devcentral.f5.com/questions/upload-ssl-keys-certs-via-icontrol-rest-api
but i keep getting this error:
{"code":404,"message":"Failed to open /var/tmp/certname.crt,"errorStack":[]}
Any help would be much appreciated.
3 Replies
- nag_54823
Cirrostratus
Hi Maverick, Did you copy the cert and key manually to bigip /var/tmp folder before installing by name certname.crt ? It's throwing 404 means file not found. Can you please paste the commands or scripts that you are using for this work ? - Maverick_80689
Nimbostratus
yes certs were copied before we tried this. I can use the same tmsh command to install it but it doest work with these commands: 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"}' - Maverick_80689
Nimbostratus
sorry guys, it worked after i restarted icrd. Weird that it was failing earlier although i checked that the service was up and running.
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