{"record":{"id":"1c5dc1e93627d015","repo":"goharbor/harbor","slug":"certificate-for-protocol-s-is-not-correctly-confi","errorCode":null,"errorMessage":"certificate for protocol %s is not correctly configured","messagePattern":"certificate for protocol (.+?) is not correctly configured","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/jobservice/config/config.go","lineNumber":328,"sourceCode":"\t\t\tJobServiceProtocolHTTP,\n\t\t\tJobServiceProtocolHTTPS,\n\t\t\tc.Protocol)\n\t}\n\n\tif !utils.IsValidPort(c.Port) {\n\t\treturn fmt.Errorf(\"port number should be a none zero integer and less or equal 65535, but current is %d\", c.Port)\n\t}\n\n\tif c.Protocol == JobServiceProtocolHTTPS {\n\t\tif c.HTTPSConfig == nil {\n\t\t\treturn fmt.Errorf(\"certificate must be configured if serve with protocol %s\", c.Protocol)\n\t\t}\n\n\t\tif utils.IsEmptyStr(c.HTTPSConfig.Cert) ||\n\t\t\t!utils.FileExists(c.HTTPSConfig.Cert) ||\n\t\t\tutils.IsEmptyStr(c.HTTPSConfig.Key) ||\n\t\t\t!utils.FileExists(c.HTTPSConfig.Key) {\n\t\t\treturn fmt.Errorf(\"certificate for protocol %s is not correctly configured\", c.Protocol)\n\t\t}\n\t}\n\n\tif c.PoolConfig == nil {\n\t\treturn errors.New(\"no worker worker is configured\")\n\t}\n\n\tif c.PoolConfig.Backend != JobServicePoolBackendRedis {\n\t\treturn fmt.Errorf(\"worker worker backend %s does not support\", c.PoolConfig.Backend)\n\t}\n\n\t// When backend is redis\n\tif c.PoolConfig.Backend == JobServicePoolBackendRedis {\n\t\tif c.PoolConfig.RedisPoolCfg == nil {\n\t\t\treturn fmt.Errorf(\"redis worker must be configured when backend is set to '%s'\", c.PoolConfig.Backend)\n\t\t}\n\t\tif utils.IsEmptyStr(c.PoolConfig.RedisPoolCfg.RedisURL) {\n\t\t\treturn errors.New(\"URL of redis worker is empty\")","sourceCodeStart":310,"sourceCodeEnd":346,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/jobservice/config/config.go#L310-L346","documentation":"Error \"certificate for protocol %s is not correctly configured\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/jobservice/config/config.go:328 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}