{"record":{"id":"5f20ef150522928c","repo":"ruby/rubygems","slug":"message-not-valid-before-not-before","errorCode":null,"errorMessage":"#{message} not valid before #{not_before}","messagePattern":"#(.+?) not valid before #(.+?)","errorType":"exception","errorClass":"Gem::Security::Exception","httpStatus":null,"severity":"error","filePath":"lib/rubygems/security/policy.rb","lineNumber":93,"sourceCode":"  def check_data(public_key, digest, signature, data)\n    raise Gem::Security::Exception, \"invalid signature\" unless\n      public_key.verify digest, signature, data.digest\n\n    true\n  end\n\n  ##\n  # Ensures that +signer+ is valid for +time+ and was signed by the +issuer+.\n  # If the +issuer+ is +nil+ no verification is performed.\n\n  def check_cert(signer, issuer, time)\n    raise Gem::Security::Exception, \"missing signing certificate\" unless\n      signer\n\n    message = \"certificate #{signer.subject}\"\n\n    if (not_before = signer.not_before) && not_before > time\n      raise Gem::Security::Exception,\n            \"#{message} not valid before #{not_before}\"\n    end\n\n    if (not_after = signer.not_after) && not_after < time\n      raise Gem::Security::Exception, \"#{message} not valid after #{not_after}\"\n    end\n\n    if issuer && !signer.verify(issuer.public_key)\n      raise Gem::Security::Exception,\n            \"#{message} was not issued by #{issuer.subject}\"\n    end\n\n    true\n  end\n\n  ##\n  # Ensures the public key of +key+ matches the public key in +signer+\n","sourceCodeStart":75,"sourceCodeEnd":111,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/rubygems/security/policy.rb#L75-L111","documentation":"Error \"#{message} not valid before #{not_before}\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/rubygems/security/policy.rb:93 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The certificate is not yet valid; check your system clock or obtain a currently valid certificate"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"86cbb817a38ce8477b181c17467a703ded3f2be8","analyzedAt":"2026-08-23T06:27:48.159Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}