$megatools --cert-inspector --client-side
SSL / X.509 Certificate Inspector
Parse and inspect X.509 certificates and CSRs (PEM format) locally without sending keys anywhere.
Invalid PEM format. Ensure certificate starts with -----BEGIN CERTIFICATE-----