You have setup a new machine in my case you just paid for a brand new dedicated server and you install your wonderful application bam you get hit by a CertificateNotYetValidException.
2013-06-28 22:34:16,499 [http-8080-15] ERROR errors.GrailsExceptionResolver - CertificateNotYetValidException occurred when processing request: [POST] /user/save
NotBefore: Fri Jul 12 03:56:36 CDT 2013. Stacktrace follows:
java.security.cert.CertificateNotYetValidException: NotBefore: Fri Jul 12 03:56:36 CDT 2013
at java.security.cert.CertPathValidator.validate(CertPathValidator.java:267)
at com.megatome.grails.recaptcha.net.Post.getText(Post.groovy:38)
at com.megatome.grails.recaptcha.ReCaptcha.checkAnswer(ReCaptcha.groovy:121)
at com.megatome.grails.RecaptchaService.verifyAnswer(RecaptchaService.groovy:112)
at com.intelquotations.security.UserController.save(UserController.groovy:33)
at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:195)
at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
at java.lang.Thread.run(Thread.java:679)
For a while there I could not figure out it was a very simple matter of the system clock being far behind and I was looking all over and not enough help from the internet then finally by dumb luck I decided to run command "date" and the date on the machine was way behind. My fix was just correct the date and Bob is your uncle.
Hope this saves someone out there some time.
No comments:
Post a Comment