A required certificate is not within its validity period

I recently tried to run Neo4j as a console, which worked fine back in March of 2023, but now in November of 2023 it gets this error when I run bin\neo4j console --verbose:

File C:\neo4j\bin\neo4j.ps1 cannot be loaded. A required
certificate is not within its validity period when verifying against the
current system clock or the timestamp in the signed file.

Removing all the neo4j.cer files from the C: drive and overwriting the old neo4j folder with neo4j-community-5.13.0-windows has no effect. Removing the old neo4j folder and replacing it with the appropriately unzipped and renamed neo4j-community-5.13.0-windows also has no effect.

How do I fix this?

1 Like

Hi there,

I encountered the same problem. It is the 'neo4j' certificate in the root folder, looking at it's information (unfortunately in German) it expired on 13th of November:

I think the package need to be re-issued with a new valid certificate...

A work-around is to set the Windows time and date before the expiration date of the certificate and start the server. When it's running the time and date can be set to actual ones again.

Kind regards,

Janis


Concur. This is the new one on my machine.

1 Like

Just to let people know, we've seen your message and we're working on fixing this.

I really don't recommend changing the system time though, you can brick your computer doing that.

2 Likes

Hi all,
On https://neo4j.com/deployment-center/, I can see that a new release of Neo4j Community is available (as of Nov 24, 2023).

However, when I download the ZIP to my Windows machine, the Certificate still seems to have the same old expiration date of Nov 13, 2023.

What am I doing wrong?

Thanks a lot,
Jutta

1 Like

I have re-signed and re-uploaded neo4js 4.4.27, 4.4.28, 5.13.0 and 5.14.0.
You will need to re-download and unzip the package to get the updated powershell scripts.

1 Like