Forum Discussion
400 error message when loading certificate
I have successfully transferred certificates to the F5 BigIP via "https://%s/mgmt/shared/file-transfer/uploads/%s" with Python. But when I go to install with the following
url = "https://%s/mgmt/tm/sys/crypto/cert" % ip
payload = '{"command":"install", "name":"%s", \
"from-local-file":"/var/config/rest/downloads/%s"}' % \
(filename.replace(".crt", ""), filename)
I get a 400 error that I cannot copy the cert file into tmpfile, permission denied. I am using auth tokens as I am a remote TACACS user. This is running, BIG-IP 12.1.0 Build 1.0.1447 Hotfix HF1.
Thanks!
- Satoshi_Toyosa1Ret. Employee
The symptom looks similar to that of K69621049: The system has an issue accessing the uploaded file due to permission. Will you check if you have received "exit_code (37)" along with the 400 response code? If so, change the permission to 666 and try again.
- mitch
Nimbostratus
I just used the admin account instead of remote auth, and that fixes it. I think version 13.x works differently.
- Satoshi_Toyosa1Ret. Employee
Good to know that the issue was fixed.
Yes, I believe the issue was fixed in v13.1.x (note: v13.0 reached End of Technical Support on May 22, 2019. See K5903).
Recent Discussions
Related Content
* 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