{"record":{"id":"16ab22f54d919e6f","repo":"puppetlabs/puppet","slug":"unknown-signature-algorithm-ln","errorCode":null,"errorMessage":"Unknown signature algorithm '%{ln}'","messagePattern":"Unknown signature algorithm '%(.+?)'","errorType":"exception","errorClass":"Puppet::Error","httpStatus":null,"severity":"error","filePath":"lib/puppet/ssl/base.rb","lineNumber":143,"sourceCode":"  end\n\n  def digest_algorithm\n    # The signature_algorithm on the X509 cert is a combination of the digest\n    # algorithm and the encryption algorithm\n    # e.g. md5WithRSAEncryption, sha256WithRSAEncryption\n    # Unfortunately there isn't a consistent pattern\n    # See RFCs 3279, 5758\n    digest_re = Regexp.union(\n      /ripemd160/i,\n      /md[245]/i,\n      /sha\\d*/i\n    )\n    ln = content.signature_algorithm\n    match = digest_re.match(ln)\n    if match\n      match[0].downcase\n    else\n      raise Puppet::Error, _(\"Unknown signature algorithm '%{ln}'\") % { ln: ln }\n    end\n  end\n\n  private\n\n  def wrapped_class\n    self.class.wrapped_class\n  end\nend\n","sourceCodeStart":125,"sourceCodeEnd":153,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/ssl/base.rb#L125-L153","documentation":"Error \"Unknown signature algorithm '%{ln}'\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/ssl/base.rb:143 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":"e227c27540975c25aa22d533a52424a9d2fc886a","analyzedAt":"2026-08-21T20:49:46.650Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}