certificate_check_validity() fails when not in folder
I'm trying to run:
Management::KeyCertificate::certificate_check_validity()
with an active folder of '/'. The list of certificates I pass to this method, however, includes certificates in various folders. (In other words, the certificates aren't in '/').
I receive an error of "Not found."
However, if I rewrite my code to iterate through each folder and perform the certificate_check_validity() while in the folder of the certificate, it works.
Bug? Am I approaching this wrong? My intent was to write the code to pull all certificates using "b.Management.KeyCertificate.get_certificate_list(mode="MANAGEMENT_MODE_DEFAULT")" while in "/" after having run "b.System.Session.set_recursive_query_state(state='STATE_ENABLED')". I then pull the cert_ids out of that and pass the list of those to certificate_check_validity(). My workaround of entering each individual folder is very slow, especially when run against my very large production clusters.
Thanks,
-M