Added support for updating certificate and not always overwrite.