{"record":{"id":"1609db2d2b7a9462","repo":"kubernetes/kops","slug":"parsing-q-certificate-v-1609db","errorCode":null,"errorMessage":"parsing %q certificate: %v","messagePattern":"parsing %q certificate: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/nodeup/nodetasks/bootstrap_client.go","lineNumber":140,"sourceCode":"\t\t}\n\t\t// TODO perhaps send a CSR instead to prove we own the private key?\n\t\treq.Certs[name] = string(pem.EncodeToMemory(&pem.Block{Type: \"RSA PUBLIC KEY\", Bytes: pkData}))\n\t}\n\n\tvar resp nodeup.BootstrapResponse\n\terr := b.Client.Query(ctx, &req, &resp)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tfor name, certRequest := range b.Certs {\n\t\tcert, ok := resp.Certs[name]\n\t\tif !ok {\n\t\t\treturn fmt.Errorf(\"kops-controller did not return a %q certificate\", name)\n\t\t}\n\t\tcertificate, err := pki.ParsePEMCertificate([]byte(cert))\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"parsing %q certificate: %v\", name, err)\n\t\t}\n\t\tcertRequest.Cert.Resource = asBytesResource{certificate}\n\t}\n\n\treturn nil\n}\n","sourceCodeStart":122,"sourceCodeEnd":147,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/nodeup/nodetasks/bootstrap_client.go#L122-L147","documentation":"Error \"parsing %q certificate: %v\" thrown in kubernetes/kops.","triggerScenarios":"Thrown at upup/pkg/fi/nodeup/nodetasks/bootstrap_client.go:140 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":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}