ruby/rubygems · error · Gem::Security::Exception
#{message} not valid before #{not_before}
Error message
#{message} not valid before #{not_before} What it means
Error "#{message} not valid before #{not_before}" thrown in ruby/rubygems.
Source
Thrown at lib/rubygems/security/policy.rb:93
def check_data(public_key, digest, signature, data)
raise Gem::Security::Exception, "invalid signature" unless
public_key.verify digest, signature, data.digest
true
end
##
# Ensures that +signer+ is valid for +time+ and was signed by the +issuer+.
# If the +issuer+ is +nil+ no verification is performed.
def check_cert(signer, issuer, time)
raise Gem::Security::Exception, "missing signing certificate" unless
signer
message = "certificate #{signer.subject}"
if (not_before = signer.not_before) && not_before > time
raise Gem::Security::Exception,
"#{message} not valid before #{not_before}"
end
if (not_after = signer.not_after) && not_after < time
raise Gem::Security::Exception, "#{message} not valid after #{not_after}"
end
if issuer && !signer.verify(issuer.public_key)
raise Gem::Security::Exception,
"#{message} was not issued by #{issuer.subject}"
end
true
end
##
# Ensures the public key of +key+ matches the public key in +signer+
View on GitHub (pinned to 86cbb817a3)
Solutions
- The certificate is not yet valid; check your system clock or obtain a currently valid certificate
When it happens
Trigger: Thrown at lib/rubygems/security/policy.rb:93 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ruby/rubygems@86cbb817a3 (2026-08-23).
Data as JSON: /api/errors/5f20ef150522928c.
Report an issue: GitHub.