Add handling for cert validation errors (can occur when connecting to endpoint over HTTPS)
Update version to 1.2.1