see on GitHub

Migration : Authentication

RavenDB 4.0 uses X.509 client certificates for authentication. See the dedicated documentation articles about the Automated Setup Wizard or Manual Certificate Configuration.