I'm experiencing a strange issue with Amazon Certificate Manager (ACM) when importing a self-signed certificate using Terraform. I'm getting an error that says, 'The certificate is valid in the future. You can Import a certificate only during its validity period.' This has happened before, but now it's occurring with every run. Here's the relevant Terraform code I'm using for generating the certificate and importing it into ACM. Has anyone else encountered this problem?
2 Answers
Definitely check the start date of your certificate. Sometimes it's a simple clock mismatch that causes these kinds of errors.
This sounds like it could be a clock issue on your machine. Maybe your system clock is slightly off? You might want to try adjusting it back by a minute or two or simply fixing your clock. It could save you some hassle!
Okay tbh I haven't restarted my laptop in months so this could be it. If that doesn’t fix it, I’ll mess with the clock. Will keep you posted; thanks for now!
Okay this fixed it, thanks!!