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

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

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

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!

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?

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.