I am sending electronic invoices to the Webservice SOAP
Testing (enablement) of the DIAN
and I get the following error:
com.indra.mmdd.signature.exceptions.ValidateException: xades4j.providers.CannotSelectCertificateException: The available certificate selector didn't match any certificates
I want to think that the problem is in the Digital Test Certificate that I have, but days ago I bought a valid certificate from the ANDES SCD entity (approved by ONAC) and it continues to mention the same error.
Has anyone experienced the same thing and can give me some feedback?
Cheers !
If this same detail happens to you when sending invoices to the DIAN webservice, it is because in the Cert tags you are placing the subject in an incorrect order, in my case, in PHP when extracting the information from the certificate and obtaining the data array, inside of "subject" the data was, for example, ordered from "A" to "Z", therefore, checking other example invoices, the data was placed in an order from "Z" to "A", therefore, only after After extracting the information from the certificate, I went through it backwards to write it in the XML as requested by the DIAN tax entity and that's it, the error stopped bothering my life :D