Adding codes to handle non-existing key or certificate
3 files changed