Forum Discussion
Bastian123234_2
Jul 19, 2017Nimbostratus
Modifying SSL Profile via REST API
Hello everyone,
Iam currently testing the REST API and having trouble with some simple changes on a SSL profile. Iam using local authentication, trying to modify a certificate used in a test pro...
- Jul 20, 2017
thanks for your feedback PK, but i found the issue:
- first of all, I pulled the whole profile, changed the settings and pushed it again. This does not work. You have to push only the values you want change, in this case "cert", "key", and "chain".
- second: i tried to change the mentioned values in "certKeyChain", however there are other key/value pairs within the hash I needed to change. It is a bit confusing, since they have the same name, and from my point of view, it makes more sense that the ones in the certKeyChain are the correct ones, but this is not the case.
so all i had to push is:
{"cert"=>"/Common/new_test.crt", "key"=>"//Common/new_test.key", "chain"=>"/Common/new_test.crt"}
Bastian123234_2
Jul 20, 2017Nimbostratus
thanks for your feedback PK, but i found the issue:
- first of all, I pulled the whole profile, changed the settings and pushed it again. This does not work. You have to push only the values you want change, in this case "cert", "key", and "chain".
- second: i tried to change the mentioned values in "certKeyChain", however there are other key/value pairs within the hash I needed to change. It is a bit confusing, since they have the same name, and from my point of view, it makes more sense that the ones in the certKeyChain are the correct ones, but this is not the case.
so all i had to push is:
{"cert"=>"/Common/new_test.crt",
"key"=>"//Common/new_test.key",
"chain"=>"/Common/new_test.crt"}
- qbolbk59Feb 21, 2022Nimbostratus
Thanks for the solution. However this is not working for me if i just send the payload you mentioned. I get an error "one or more configuration identifiers must be provided". Not sure what's missing. Any idea ?
Also, in your request, where do you specify which SSL profile you need to update since it's neither mentioned in the payload not in your url ?
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