Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to delete a certificate using API?

Hi,

Despite my positive feelings regarding Sophos products, API documentation is worst I have ever seen!

It lacks very basic command explanations or examples, for example to delete the certificate it says that Name attribute is required BUT, it does not show WHERE this attribute must be placed? I spent whole day figuring it out, tried all combinations, one of them is:

<Set operation="delete"><CertificateAuthority><Name>cert name</Name></CertificateAuthority></Set>

Does anybody know a magical command?



This thread was automatically locked due to age.
Parents Reply
  • no it's working. what is strange to me is that when I export certificate entries to disk, I see that the certificate name in <CertificateAuthority> is different, it's like name_GA213023. I guess this entry is automatically created when the certificate is being uploaded. Because the actual name is in <Certificate> tag. Now, When I try:

    <Set operation="delete"><Certificate><Name>cert name</Certificate></Set>

    I'm getting this error:

    <Login>
    <status>Authentication Successful</status>
    </Login>
    <Certificate transactionid="">
    <Status code="501">Configuration parameters validation failed.</Status>
    <InvalidParams>
    <Params>/Certificate/Name</Params>
    <Params>/Certificate/Name</Params>
    <Params>/Certificate/Name</Params>
    <Params>/Certificate/CommonName</Params>
    </InvalidParams>
    </Certificate>
    </Response>
Children