Forum Discussion
certificate_import_from_pem overwrite doesn't work
Hello,
I am facing a problem when I use certificate_import_from_pem and key_import_from_pem under iControl->Management->KeyCertificate. Both methods have 'overwrite' parameter. The issue is when I set this parameter to true, it throws an exception saying that the certificate already exists. The exact message is "The requested Certificate File (/Common/******) already exists in partition Common."
I am using 10.2.0 of iControl SOAP API. Could you please help me on this.
Regards, Amir
5 Replies
- Nuruddin_Ahmed_
Cirrostratus
Hi,
just check this (path may be different in your version) if the certificate & key is already there in this path
Certificate -->
/config/filestore/files_d/Common_d/certificate_d
Key -->
/config/filestore/files_d/Common_d/certificate_key_d
looks like the certificate and key already exists in this path
- Nuruddin_Ahmed_
Cirrostratus
Comment made 2 seconds ago by Nuruddin Ahmed 280
Hi,just check this (path may be different in your version) if the certificate & key is already there in this path
Certificate -->
/config/filestore/files_d/Common_d/certificate_d
Key -->
/config/filestore/files_d/Common_d/certificate_key_d
looks like the certificate and key already exists in this path
- aras_204832
Nimbostratus
My issue is not about the existence of the certificate. By setting the parameter 'overwrite' to true, it is expected it overwrites the certificate and the key when they exist! But overwriting parameter set to true does not do anything, it acts like it is set to false!
- Nuruddin_Ahmed_
Cirrostratus
You can try to delete the key and cert manually (from the command line, after taking backup) and check what happens next. is this key and cert being used somewhere else also?
- Santosh_vemu_26
Nimbostratus
Has this been resolved? I'm facing a similar issue with iControl SOAP API on 12.1.1 version. The override flag works fine in 11.6.1 but throws the same error as you stated in 12.1.1.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
