{"record":{"id":"f5b918fd67c1cb39","repo":"eclipse-vertx/vert.x","slug":"invalid-der-object-is-not-a-string","errorCode":null,"errorMessage":"Invalid DER: object is not a string","messagePattern":"Invalid DER: object is not a string","errorType":"exception","errorClass":"VertxException","httpStatus":null,"severity":"error","filePath":"vertx-core/src/main/java/io/vertx/core/net/impl/pkcs1/PrivateKeyParser.java","lineNumber":516,"sourceCode":"        case DerParser.GRAPHIC_STRING:\n        case DerParser.ISO646_STRING:\n        case DerParser.GENERAL_STRING:\n          encoding = \"ISO-8859-1\";\n          break;\n\n        case DerParser.BMP_STRING:\n          encoding = \"UTF-16BE\";\n          break;\n\n        case DerParser.UTF8_STRING:\n          encoding = \"UTF-8\";\n          break;\n\n        case DerParser.UNIVERSAL_STRING:\n          throw new VertxException(\"Invalid DER: can't handle UCS-4 string\");\n\n        default:\n          throw new VertxException(\"Invalid DER: object is not a string\");\n      }\n\n      try {\n        return new String(value, encoding);\n      } catch (UnsupportedEncodingException e) {\n        throw new VertxException(e);\n      }\n    }\n  }\n}\n","sourceCodeStart":498,"sourceCodeEnd":527,"githubUrl":"https://github.com/eclipse-vertx/vert.x/blob/fb308bd8c3f12c79f4ae89bef67fadf6c80d036e/vertx-core/src/main/java/io/vertx/core/net/impl/pkcs1/PrivateKeyParser.java#L498-L527","documentation":"DER structure mismatch in PrivateKeyParser.getString: the element's ASN.1 tag matches none of the supported string types (UTF8, Printable, IA5, BMP, etc.). The input at fault is the DER element being read; typically means the structure is not a string where one was expected (malformed key).","triggerScenarios":"Thrown at vertx-core/src/main/java/io/vertx/core/net/impl/pkcs1/PrivateKeyParser.java:516 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-export the key in a well-formed supported format","Validate the PEM/DER input before configuring it"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fb308bd8c3f12c79f4ae89bef67fadf6c80d036e","analyzedAt":"2026-09-06T11:37:12.241Z","contentChangedAt":"2026-09-06T11:37:12.241Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}