{"record":{"id":"6d11a3336e638cf2","repo":"eclipse-vertx/vert.x","slug":"invalid-der-object-is-not-an-object-identifier","errorCode":null,"errorMessage":"Invalid DER: object is not an Object Identifier","messagePattern":"Invalid DER: object is not an Object Identifier","errorType":"exception","errorClass":"VertxException","httpStatus":null,"severity":"error","filePath":"vertx-core/src/main/java/io/vertx/core/net/impl/pkcs1/PrivateKeyParser.java","lineNumber":476,"sourceCode":"     *\n     * @return BigInteger\n     * @throws VertxException\n     */\n    public BigInteger getInteger() throws VertxException {\n      if (type != DerParser.INTEGER) {\n        throw new VertxException(\"Invalid DER: object is not integer\");\n      }\n\n      return new BigInteger(value);\n    }\n\n    public byte[] getObjectIdentifier() throws VertxException {\n\n      switch(type) {\n      case DerParser.OBJECT_IDENTIFIER:\n        return value;\n      default:\n        throw new VertxException(\"Invalid DER: object is not an Object Identifier\");\n      }\n    }\n\n    /**\n     * Get value as string. Most strings are treated\n     * as Latin-1.\n     *\n     * @return Java string\n     * @throws VertxException\n     */\n    public String getString() throws VertxException {\n\n      String encoding;\n\n      switch (type) {\n\n        // Not all are Latin-1 but it's the closest thing\n        case DerParser.NUMERIC_STRING:","sourceCodeStart":458,"sourceCodeEnd":494,"githubUrl":"https://github.com/eclipse-vertx/vert.x/blob/fb308bd8c3f12c79f4ae89bef67fadf6c80d036e/vertx-core/src/main/java/io/vertx/core/net/impl/pkcs1/PrivateKeyParser.java#L458-L494","documentation":"DER structure mismatch in PrivateKeyParser: a DER element was expected to be an OBJECT IDENTIFIER (e.g. the EC curve OID) but its ASN.1 tag differs. The input at fault is the DER-encoded key material being parsed; usually a malformed or incompatible key encoding.","triggerScenarios":"Thrown at vertx-core/src/main/java/io/vertx/core/net/impl/pkcs1/PrivateKeyParser.java:476 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-export the key with a standard tool so OIDs are properly DER-encoded","Confirm the key uses a supported algorithm/curve"],"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-14T05:17:10.506Z"}