21-Feb-2022 02:32 - edited 21-Feb-2022 02:34
Hi All,
Is there a way to update the exisiting certificate binded in the SSL profile of F5 ? I have installed the certificate already but not really sure how to add that cert to the SSL profile using iControl REST API.
I tried sending the request as shown below, but it always throws error 400.
URL: https://hostname/mgmt/tm/ltm/profile/client-ssl/profile_name?ver=15.1.2.1
POST Body:
{
"cert": "/Common/cert_name.crt",
"chain": "/Common/ca_package.crt",
"key": "/Common/key_name.key"
}
The error i am getting is:
{
"code": 400,
"message": "one or more configuration identifiers must be provided",
"errorStack": [],
"apiError": 26214401
}
Solved! Go to Solution.
21-Feb-2022 04:24
Hi,
I think you have to fix a couple of parameters to correct your script:
1. You need to use the method Patch to edit the current profile.
2.The correct URL to edit the profile is /mgmt/tm/ltm/profile/client-ssl/~Common~pofile_name?ver=15.1.3.1
3. The body is correct.
21-Feb-2022 04:24
Hi,
I think you have to fix a couple of parameters to correct your script:
1. You need to use the method Patch to edit the current profile.
2.The correct URL to edit the profile is /mgmt/tm/ltm/profile/client-ssl/~Common~pofile_name?ver=15.1.3.1
3. The body is correct.
23-Feb-2022 02:41
@Sebastiansierra Ah.. rookie mistake with the URL. Thanks for pointing it out ! 😝
21-Feb-2022 04:47