Running in a potentially unsafe mode
Server certificate information has not been set up and the server address is not configured within allowed unsecured access address range.
Please find the RavenDB settings file settings.json in the server directory and fill in your certificate information under either:
Security.Certificate.Path
The path to .pfx certificate file. If specified, RavenDB will use HTTPS/SSL for all network activities. You can use the '~/' prefix to refer to RavenDB's base directory.
or
Security.Certificate.Exec
A command or executable providing a .pfx certificate file. If specified, RavenDB will use HTTPS/SSL for all network activities.
If you would rather like to keep your server unsecured, please relax the Security.UnsecuredAccessAllowed configuration setting to match the ServerUrl setting value, which can be a combination of the following flags: None | Local | PrivateNetwork | PublicNetwork.
Add CommentAnd exported to have a pfx
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/ravendb.key -out /etc/ssl/certs/ravendb.crt
openssl pkcs12 -export -out ravendb.pfx -inkey /etc/ssl/private/ravendb.key -in /etc/ssl/certs/ravendb.crt
I added it to the settings.json but then when I run it I have the follow error :
But then I have the following error :
System.InvalidOperationException: Unable to start the server due to invalid certificate configuration! Admin assistance required. ---> System.InvalidOperationException: Could not load certificate file /etc/ssl/certs/ravendb.pfx ---> Org.BouncyCastle.Security.EncryptionException: Server certificate from /etc/ssl/certs/ravendb.pfx must be defined with the following 'Enhanced Key Usages': Client Authentication (Oid 1.3.6.1.5.5.7.3.2) & Server Authentication (Oid 1.3.6.1.5.5.7.3.1)
Thanks for your help
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
{
"ServerUrl": "http://0.0.0.0:8080",
"RunInMemory": false,
"Security.UnsecuredAccessAllowed"="PublicNetwork"
}
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.