Hi wiz’s
I have been spending some time on automating certificate maintenance.
This has brought my attention to this documentation: APIRef_tm_ltm_profile_client-ssl
In the table descriping “cert”, “chain” and “key” it states in the notes that they are depricated and I should use certKeyChain option instead.
However no matter what I construct of calls which makes changes to an already existing clientssl profile (PATCH and PUT) I’m told:
{“code”:403,“message”:“Operation is not supported on component /ltm/profile/client-ssl.”,“errorStack”:[],“apiError”:1}
Example code:
curl -sk -H "X-F5-Auth-Token: $TOKEN" -X PATCH https://$f5/mgmt/tm/ltm/profile/client-ssl/ --header 'Content-Type: application/json' --data-raw '{
"name":"sletmig",
"certKeyChain":[{"name":"default","cert":"hest.dk_2023","key":"hest.dk_2023","chain":"My_CA"}]
}'
{"code":403,"message":"Operation is not supported on component /ltm/profile/client-ssl.","errorStack":[],"apiError":1}
I can make the change via this syntax:
curl -sk -H "X-F5-Auth-Token: $TOKEN" -X PATCH https://$f5/mgmt/tm/ltm/profile/client-ssl/~Common~sletmig -H "Content-Type: application/json" -d '{
"key":"/Common/hest.dk_2023",
"cert":"/Common/hest.dk_2023",
"chain":"/Common/My_CA"
}'|jq
Do I read the documentation wrong or am I missing something else?
@JRahm any hints?