Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Fungovanie tejto stránky je z dôvodu údržby dočasne obmedzené. Ak článok nevyrieši váš problém a chcete položiť otázku, napíšte našej komunite podpory na Twitter @FirefoxSupport alebo Reddit /r/firefox.

Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Ďalšie informácie

Error message recieved when applying TLS/SSL

  • 5 odpovedí
  • 2 majú tento problém
  • 1 zobrazenie
  • Posledná odpoveď od cor-el

more options

When I am trying to update my Mozilla.cfg and add preferences I receive the attached error message when I apply the following settings:

LockPref("security.enable_tls", true);

LockPref("security.enable_ssl2", false)

LockPref("security.enable_ssl3", false);

lockPref("security.tls.version.min", "2");

lockPref("security.tls.version.max", "3");


in addition to the issues with adding TLS, SSL, and TSL min/max version, I also received the same error message when I try to apply the following lines:

lockPref("browser.history_expire_days_min", "40");

lockPref("browser.history_expire_days_min", "40");


Running the most current version of Firefox (at the time I created this post) 61.0.1


Error message in case the attachment doesn't work:

Netscape.cfg/AutoConfig failed. Please contact your system administrator.

Error: defaultPref failed: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.setStringPref]"  nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)"  location: "JS frame :: prefcalls.js :: defaultPref :: line 53"  data: no]
When I am trying to update my Mozilla.cfg and add preferences I receive the attached error message when I apply the following settings: LockPref("security.enable_tls", true); LockPref("security.enable_ssl2", false) LockPref("security.enable_ssl3", false); lockPref("security.tls.version.min", "2"); lockPref("security.tls.version.max", "3"); in addition to the issues with adding TLS, SSL, and TSL min/max version, I also received the same error message when I try to apply the following lines: lockPref("browser.history_expire_days_min", "40"); lockPref("browser.history_expire_days_min", "40"); Running the most current version of Firefox (at the time I created this post) 61.0.1 Error message in case the attachment doesn't work: Netscape.cfg/AutoConfig failed. Please contact your system administrator. Error: defaultPref failed: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.setStringPref]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: prefcalls.js :: defaultPref :: line 53" data: no]
Priložené obrázky

Upravil(a) chwest90 dňa

Vybrané riešenie

hi, don't put quotation marks around integer values. in addition you can leave out the browser.history_expire_days_min preference, it is outdated and won't have any effect...

edit: also it's "lockPref" - you'll have to be careful with capitalization in this file

Čítať túto odpoveď v kontexte 👍 1

Všetky odpovede (5)

more options

Vybrané riešenie

hi, don't put quotation marks around integer values. in addition you can leave out the browser.history_expire_days_min preference, it is outdated and won't have any effect...

edit: also it's "lockPref" - you'll have to be careful with capitalization in this file

Upravil(a) philipp dňa

more options

Great, thanks Philipp that worked for the min/max version, but what about the "enable_tls", "enable_ssl2", and "enable_ssl3" ?

edit reply: I do have all my lines set to "lockPref" it appears my web browser helped itself to some auto-capitalization.

Upravil(a) chwest90 dňa

more options

i think those prefs are outdated and won't do anything in modern firefox versions either. you'll already achieve your goal by setting

lockPref("security.tls.version.min", 2);
lockPref("security.tls.version.max", 3);
more options

is there any way to still set it using Mozilla.cfg? I have very specific instructions to apply these settings. If not, I can simply submit for an exception, but I would still like to try make it work.

more options

SSL2 support was removed in Firefox 8.

SSL3 support was removed in Firefox 39.

These prefs are no longer supported since Firefox 23.

lockPref("security.enable_tls", true);
lockPref("security.enable_ssl2", false)
lockPref("security.enable_ssl3", false);

Bug 733642 - Allow the user to enable any version of TLS that libssl supports, maintaining our current defaults [23]

#733642#c1: This patch drops support for the security.enable_tls and security.enable_ssl3 prefs with new prefs security.tls.version.min and security.tls.version.max.