For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

mitch's avatar
mitch
Icon for Nimbostratus rankNimbostratus
Mar 06, 2020

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!

 

3 Replies

  • 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's avatar
    mitch
    Icon for Nimbostratus rankNimbostratus

    I just used the admin account instead of remote auth, and that fixes it. I think version 13.x works differently.

  • 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).