ICAO changed master list structure a little bit, so I updated the script to make it work with the latest ICAO Master List (I tried icaopkd-002-ml-000222.ldif), while also supporting the old "format".
Also added if statement for prints (if you extracting certificates from .ml there is no cns variable and it throws an UnboundLocalError: local variable 'cns' referenced before assignment)
ICAO changed master list structure a little bit, so I updated the script to make it work with the latest ICAO Master List (I tried
icaopkd-002-ml-000222.ldif
), while also supporting the old "format".Also added if statement for prints (if you extracting certificates from
.ml
there is nocns
variable and it throws anUnboundLocalError: local variable 'cns' referenced before assignment
)Thanks!
(I have Python 3.10.9)