#fixbug: ignore .pem and .key with different pattern.