Certificate errors on restricted network: What to take from a working Firefox?
Hi,
I'm behind a controlled network, Zotero v5 standalone does give the SSL certificate error for api.zotero.org.
My IT folks would not help me much, since Zotero not being a supported application.
Now, I have a working Firefox (on Linux) where https://api.zotero.org works with no certificate error, connection is trusted. The cert is issued by some proxy.
What do I need to take from the Firefox setup to get Zotero v5 to work for me?
about:config I guess?
Tried to set the same network.proxy.autoconfig_url and network.proxy.type but no luck.
Many thanks
Rudy
I'm behind a controlled network, Zotero v5 standalone does give the SSL certificate error for api.zotero.org.
My IT folks would not help me much, since Zotero not being a supported application.
Now, I have a working Firefox (on Linux) where https://api.zotero.org works with no certificate error, connection is trusted. The cert is issued by some proxy.
What do I need to take from the Firefox setup to get Zotero v5 to work for me?
about:config I guess?
Tried to set the same network.proxy.autoconfig_url and network.proxy.type but no luck.
Many thanks
Rudy
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Due to restrictions my standalone Z5 install is at
c:\folder\Zotero_standalone
I set a custom Data directory
c:\folder\Zotero_data
My old setup Z4 was a portable firefox, there https://api.zotero.org is not trusted: SEC_ERROR_UNKNOWN_ISSUER Don't know how to accept this then... Same root cause probably, company intercepting SSL and use of proxy.
As I can't get the accept from Firefox portable, little use to do this but I still tried and fetched cert8.db and copied to:
C:\folder\Zotero_data\cert8.db
and
C:\folder\Zotero_standalone\cert8.db
The network.proxy settings are exactly as the working Linux Firefox (but I guess there are also system settings involved, not only Firefox).
Still no luck.
Thanks for caring :-)
Delete the files you've already copied, since those aren't the right locations. There will be an existing cert8.db (and prefs.js, key3.db, extensions.ini, xulstore.jsonā¦) in the profile directory.
I just learned there was made a Zotero profile directory (C:\User\Appdata...).
There I have put the cert8.db and cert_override.txt from the working Linux Firefox (.mozilla/firefox/).
Still looks like this is not the solution :-(
Does cert8.db tell Linux-Firefox to trust the api.zotero.org certificate that comes from the proxy? No clue about these things...obviously.
You probably need to restart Zotero afterward.
I have tried with a new plain Firefox-portable.
Some https-sites work (banks, newspapers) while others (tv-network, newspaper) while others says "not secure". As with https://api.zotero.org
The error is:
" uses an invalid security certificate", SEC_ERROR_UNKNOWN_ISSUER
For the news-site nrk.no I have a button for 'add exception'.
But not for api.zotero.org
So it seems my problem is: Not being able to tell Firefox to accept the api.zotero connection.
So I will then go back to my IT-folks and make them help me to get portable-Firefox to trust this internal stuff. Then api.zotero should be working and I can copy the files to the Z5 directory, right?
My dedicated portable-Firefox is now accepting https://api.zotero.org/ with no errors and a trusted connection through proxy. I did export a number of certificates from system browser and imported into FF.
Then I have copied the cert8.db from portable-Firefox (56.0.2 64-bit, Win7 Enterprise) to the Zotero-v5-standalone profile, like so:
C:\Users\_user_\AppData\Local\Zotero\Zotero\Profiles\_randomstring_.default\cert8.db
That would mean Zotero v5 should now use the same approach as portable-Firefox. As described in Cert Override instructions.
Rebooted, still same error from Z5 :-(
I guess I'm still missing something...
cert_override.txt should not be relevant, since I did not need an exception (the file is not there anyways).
Also upgraded from 5.0.23 to 5.0.24 just now, still same...
With a humble thank you
Rudolf
Syncing now :-)
Forgot to mention: I was testing setting 'security.enterprise_roots.enabled' to true in portable Firefox, with no success.
In summary, here's what I did for my managed corporate network:
Have a browser that establishes an encrypted connection to https://api.zotero.org giving 'Nothing to see here' and no errors/warnings. From this browser export the certificates specific for the network (I used 'root' and 'intermediate' for the proxies).
A portable Firefox was installed, initially this did not trust the https://api.zotero.org connection. Import the certificates, upon success: Copy the cert8.db file from Firefox into the correct Zotero profile directory https://www.zotero.org/support/kb/profile_directory
C:\Users\_user_\AppData\Roaming\Mozilla\Firefox\Profiles\_randomstring_.default\
towards Zotero profile folder :
C:\Users\_user_\AppData\Roaming\Zotero\Zotero\Profiles\_randomstring_.default\