{"record":{"id":"b603b12625e3fa3d","repo":"nats-io/nats-server","slug":"cert-store-not-compatible-with-current-operating-s","errorCode":null,"errorMessage":"cert_store not compatible with current operating system","messagePattern":"cert_store not compatible with current operating system","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/certstore/errors.go","lineNumber":78,"sourceCode":"\tErrConflictCertFileAndStore = errors.New(\"'cert_file' and 'cert_store' may not both be configured\")\n\n\t// ErrBadCertStoreField represents malformed cert_store option\n\tErrBadCertStoreField = errors.New(\"expected 'cert_store' to be a valid non-empty string\")\n\n\t// ErrBadCertMatchByField represents malformed cert_match_by option\n\tErrBadCertMatchByField = errors.New(\"expected 'cert_match_by' to be a valid non-empty string\")\n\n\t// ErrBadCertMatchField represents malformed cert_match option\n\tErrBadCertMatchField = errors.New(\"expected 'cert_match' to be a valid non-empty string\")\n\n\t// ErrBadCaCertMatchField represents malformed cert_match option\n\tErrBadCaCertMatchField = errors.New(\"expected 'ca_certs_match' to be a valid non-empty string array\")\n\n\t// ErrBadCertMatchSkipInvalidField represents malformed cert_match_skip_invalid option\n\tErrBadCertMatchSkipInvalidField = errors.New(\"expected 'cert_match_skip_invalid' to be a boolean\")\n\n\t// ErrOSNotCompatCertStore represents cert_store passed that exists but is not valid on current OS\n\tErrOSNotCompatCertStore = errors.New(\"cert_store not compatible with current operating system\")\n)\n","sourceCodeStart":60,"sourceCodeEnd":80,"githubUrl":"https://github.com/nats-io/nats-server/blob/3a66a489d262bf89b71a71c955c94920394532f3/server/certstore/errors.go#L60-L80","documentation":"Returned when the configured cert_store type is either unknown or not valid for runtime.GOOS (checked against StoreOSMap), e.g. a Windows certificate store configured on Linux, or the stub TLSConfig path on an unsupported platform. The cert_store type string is the input at fault.","triggerScenarios":"Thrown at server/certstore/errors.go:78 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a cert store type supported on this OS (check StoreOSMap; Windows stores only work on Windows)","Fall back to cert_file/cert_key file-based TLS on unsupported platforms","Fix typos in the cert_store string"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3a66a489d262bf89b71a71c955c94920394532f3","analyzedAt":"2026-09-02T04:41:54.247Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}