def METHOD_NAME(self, crt_str):
    """ A single PEM file may have multiple certificates """
    crt = ''
    count = 0
    start = False
    for strg in crt_str.splitlines(True):
        if strg == '-----BEGIN CERTIFICATE-----\n' and start is False:
            crt = ''
            start = True
        elif strg == '-----END CERTIFICATE-----\n' and start is True:
            crt += strg + '\n'
            start = False
            self.certificates.append(x509.load_pem_x509_certificate(crt.encode(), default_backend()))
            count += 1
        if start is True:
            crt += strg
    if(count == 0):
        raise InputError('No certificate found')
    status('Successfully added %d certificates' % count)