Forum Discussion
The requested ClientSSL Profile (/Common/url.com) already exists in partition Common.
I am getting this error when I push a cert. What is the best way to handle this case? It happens when I use POST. I tried PUT and PATCH and they don't work. Should I DELETE this and then POST it?
The endpoint I am posting to is
mgmt/tm/ltm/profile/client-ssl
.I solved this issue by using a combination of POST and PUT.
The initial POST is needed if it is a new profile. I attempt a PUT to
. If I get an unsuccessful response on this, I attempt a POST to/mgmt/tm/ltm/profile/clientSsl/$DOMAIN
with a body that looks like/mgmt/tm/ltm/profile/clientSsl
which means it has created the profile for the first name.{ 'name' => "$DOMAIN", 'cert' => "$DOMAIN.crt", 'key' => "$DOMAIN.key" }
This seems to handle renewals as well as first time creations.
- Grant_Joy_24163Altostratus
I solved this issue by using a combination of POST and PUT.
The initial POST is needed if it is a new profile. I attempt a PUT to
. If I get an unsuccessful response on this, I attempt a POST to/mgmt/tm/ltm/profile/clientSsl/$DOMAIN
with a body that looks like/mgmt/tm/ltm/profile/clientSsl
which means it has created the profile for the first name.{ 'name' => "$DOMAIN", 'cert' => "$DOMAIN.crt", 'key' => "$DOMAIN.key" }
This seems to handle renewals as well as first time creations.
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