Firefox Error Connecting to Studio (Missing Certificate?)

121 views
Skip to first unread message

Cutie Honey

unread,
Feb 9, 2018, 9:44:20 PM2/9/18
to RavenDB - 2nd generation document database
I've done a ton of google searches to no avail.  There is nothing out there that describes how to setup Firefox to connect to the Studio.  All I get is this error:

Authentication error occurred

There were problems authenticating the request:

This server requires client certificate for authentication, but none was provided by the client.


I know I need to install a certificate in Firefox, that is the only thing I can find.  What certificate?


I tried generating a Client Certificate in the console (running directly on the server) and then I tried to install the pfx into Firefox, but this does absolutely nothing!  I still get the error.


So, what certificate do I need to import?  The instructions in the readme.txt does not even describe the steps for the Quantum version of Firefox, so that is out of date in and of itself.


Oren Eini (Ayende Rahien)

unread,
Feb 10, 2018, 6:59:10 AM2/10/18
to ravendb
Hi,
When you setup the RavenDB node, the setup process generated a zip file. Inside that zip file you'll find an admin client certificate that you can install in FF.
This was also automatically install for you into the user store, but FF doesn't use that.

Hibernating Rhinos Ltd  

Oren Eini l CEO 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.

iftah

unread,
Feb 10, 2018, 11:53:56 AM2/10/18
to RavenDB - 2nd generation document database
If you get a Firefox error "Failed to import the certificate due to unknown reasons", try to create a certificate with a password.
It can be created like this: https://ravendb.net/docs/article-page/4.0/csharp/server/administration/cli#generateclientcert

Cutie Honey

unread,
Feb 10, 2018, 1:25:32 PM2/10/18
to RavenDB - 2nd generation document database
In the Firefox Quantum Certificate Manager window, there are several tabs for certificates.  Is it the "Your Certificates" tab?  And do I import the pfx from the zip file?  If so, I did all that.  I generated a new cert with a password, imported the pfx from the zip file and it still didn't work.  Do I need to restart Firefox?  That was the only thing I didn't do because I was streaming at the time.  I'll try it again later but not expecting much at this point.

iftah

unread,
Feb 10, 2018, 1:59:26 PM2/10/18
to RavenDB - 2nd generation document database
Yes, it's the "Your Certificates" tab.

Have you tried with Chrome? I want to understand if it's a Firefox problem.
Do you get a Firefox error when importing the certificate? Does it show on the list after you import it?
Try restarting Firefox because certificates are cached.
Also, what OS are you using?

Iftah.

Cutie Honey

unread,
Feb 11, 2018, 2:58:34 PM2/11/18
to RavenDB - 2nd generation document database
Ok, I have repeated all the steps (I had deleted and recreated the RavenDB setup several times since then, learning how it works.)

It is working now!

I think the restart of Firefox was the key.  I did everything exactly the same as I had before.  Exported a new cert with a password, imported into Firefox.  Then I restarted Firefox before attempting to go to the studio url.  After the restart, it worked.  Firefox asked me about the certificate and I OKd that dialog.  The studio then loaded as expected.

FYI, I am running the latest Windows 10 (Fall Creators Update.)

Judah Gabriel Himango

unread,
Feb 12, 2018, 1:36:30 PM2/12/18
to RavenDB - 2nd generation document database
Yep, restarting Firefox did the trick for me too.

So, for me, it looks like this:

  1. In Firefox, go to options.
  2. In options, search for "cert" and click View Certificates.
  3. Under "Your Certificates", click Import and import the .pfx file.
  4. Restart.
Reply all
Reply to author
Forward
0 new messages