{"id":1005,"date":"2014-11-14T08:51:18","date_gmt":"2014-11-14T08:51:18","guid":{"rendered":"http:\/\/blogs.silicontechnix.com\/?p=1005"},"modified":"2014-11-14T09:02:16","modified_gmt":"2014-11-14T09:02:16","slug":"the-connection-was-reset-firefox-error-code-sec_error_invalid_key","status":"publish","type":"post","link":"https:\/\/blogs.silicontechnix.com\/?p=1005","title":{"rendered":"The connection was reset &#8211; Firefox &#8211; (Error code: sec_error_invalid_key)"},"content":{"rendered":"<p>Today when I opened my self-signed secure website, it gave me following error:<br \/>\nThe key does not support the requested operation. (Error code: <strong>sec_error_invalid_key<\/strong>)<br \/>\n<a href=\"https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2014\/11\/connection-was-reset1.jpg\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1009\" data-permalink=\"https:\/\/blogs.silicontechnix.com\/?attachment_id=1009\" data-orig-file=\"https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2014\/11\/connection-was-reset1.jpg\" data-orig-size=\"308,178\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"connection was reset\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2014\/11\/connection-was-reset1-300x173.jpg\" data-large-file=\"https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2014\/11\/connection-was-reset1.jpg\" class=\"aligncenter size-full wp-image-1009\" src=\"https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2014\/11\/connection-was-reset1.jpg\" alt=\"connection was reset\" width=\"308\" height=\"178\" srcset=\"https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2014\/11\/connection-was-reset1.jpg 308w, https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2014\/11\/connection-was-reset1-300x173.jpg 300w\" sizes=\"auto, (max-width: 308px) 100vw, 308px\" \/><\/a>But in the past it was like:<br \/>\n<a href=\"https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2014\/11\/connection-was-reset-before.jpg\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1011\" data-permalink=\"https:\/\/blogs.silicontechnix.com\/?attachment_id=1011\" data-orig-file=\"https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2014\/11\/connection-was-reset-before.jpg\" data-orig-size=\"298,180\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"connection was reset-before\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2014\/11\/connection-was-reset-before.jpg\" data-large-file=\"https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2014\/11\/connection-was-reset-before.jpg\" class=\"aligncenter size-full wp-image-1011\" src=\"https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2014\/11\/connection-was-reset-before.jpg\" alt=\"connection was reset-before\" width=\"298\" height=\"180\" \/><\/a>What I did wrong? Oh yes, Firefox upgraded to 33.0 (now 33.1), something broken in 33+ and was working fine with Firefox 32.0?<\/p>\n<p><!--more--><strong>Bug?<\/strong> :<a href=\"https:\/\/support.mozilla.org\/en-US\/questions\/1018618\"> https:\/\/support.mozilla.org\/en-US\/questions\/1018618<\/a><br \/>\n<a href=\"https:\/\/blog.mozilla.org\/security\/2014\/04\/24\/exciting-updates-to-certificate-verification-in-gecko\/\">https:\/\/blog.mozilla.org\/security\/2014\/04\/24\/exciting-updates-to-certificate-verification-in-gecko\/<\/a><br \/>\n<a href=\"https:\/\/developer.mozilla.org\/en-US\/Firefox\/Releases\/33\/Site_Compatibility#Security\">https:\/\/developer.mozilla.org\/en-US\/Firefox\/Releases\/33\/Site_Compatibility#Security<\/a><\/p>\n<p>I have encountered the same problem when accessing Webmin\u00a0 after upgrading to Firefox 33. The key length is a problem here, so how to fix it?<\/p>\n<p>Recreate your self-signed certificate (like you first created the certificate)<br \/>\nRemove the self-signed certificate from Firefox allowed list and readd if it is due to expire.<\/p>\n<div class=\"post-text\">\n<p>I was using Webmin so I created a new &#8216;self signed&#8217; ssl certificate from:<br \/>\nWebmin -&gt; Webmin Configuration -&gt; SSL Encryption -&gt; Create New -&gt; Self-Signed Certificate<\/p>\n<p>Now the <span style=\"text-decoration: underline;\">technical reason<\/span> behind this new issue from <a href=\"https:\/\/developer.mozilla.org\">Mozilla Developer Blog<\/a>:<\/p>\n<p>The Netscape-derived <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/JavaScript_crypto\">legacy Crypto API<\/a> implemented on <a title=\"The Window.crypto read-only property returns the Crypto object associated to the global object. This object allows web pages access to certain cryptographic related services.\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/window.crypto\"><code>window.crypto<\/code><\/a> has been disabled, including <code>enableSmartCardEvents<\/code> and <code>version<\/code> properties as well as <code>generateCRMFRequest<\/code>, <code>importUserCertificates<\/code>, <code>logout<\/code> and <code>signText<\/code> methods. These features have never been standardized and therefore will be removed with <a href=\"https:\/\/developer.mozilla.org\/en-US\/Firefox\/Releases\/34\/Site_Compatibility\">Firefox\u00a034<\/a>, while the standard <a class=\"external external-icon\" href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=865789\">Web Crypto API has been actively implemented<\/a>. See the <a class=\"external external-icon\" href=\"https:\/\/wiki.mozilla.org\/SecurityEngineering\/Removing_Proprietary_window.crypto_Functions\">MozillaWiki article<\/a> for details.<\/p>\n<p><strong>Update<\/strong>: Feedbacks on Firefox\u00a033 have revealed that various banks and government agencies are still using this legacy Crypto API, the <code>crypto.signText<\/code> method in particular. Therefore, Mozilla has decided to bring the API back with Firefox\u00a034 and remove it again in the near future once a substitute Firefox extension is developed. Firefox\u00a033 users can still re-enable the API by setting the <code>dom.unsafe_legacy_crypto.enabled<\/code> pref to <code>true<\/code>, and Firefox\u00a031 ESR users are not affected by this change<\/p>\n<p>How it helps<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today when I opened my self-signed secure website, it gave me following error: The key does not support the requested operation. (Error code: sec_error_invalid_key) But in the past it was like: What I did wrong? Oh yes, Firefox upgraded to 33.0 (now 33.1), something broken in 33+ and was working fine with Firefox 32.0?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"no","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[95],"tags":[457,460,62,459,458,143,91],"class_list":["post-1005","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-certificate","tag-connection-reset","tag-firefox","tag-sec_error_invalid_key","tag-self-signed","tag-ssl","tag-webmin"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p12j6H-gd","_links":{"self":[{"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=\/wp\/v2\/posts\/1005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1005"}],"version-history":[{"count":5,"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=\/wp\/v2\/posts\/1005\/revisions"}],"predecessor-version":[{"id":1013,"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=\/wp\/v2\/posts\/1005\/revisions\/1013"}],"wp:attachment":[{"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}