def METHOD_NAME(cert, key):
    # assert that file markers are in place
    assert PEM_CERT_START in cert
    assert PEM_CERT_END in cert
    assert re.match(PEM_KEY_START_REGEX, key.replace("\n", " "))
    assert re.match(rf".*{PEM_KEY_END_REGEX}", key.replace("\n", " "))