def extract_from_system():

    ca_path = system_path()

    output = []
    with open(ca_path, 'rb') as f:
        for entry_info in unarmor(f.read(), multiple=True):
            if entry_info[0] == 'CERTIFICATE':
                output.append(entry_info[2])

    return output
Extracts trusted CA certs from the system CA cert bundle
dataset/ETHPy150Open wbond/oscrypto/oscrypto/_linux_bsd/trust_list.py/extract_from_system