Software⏱️ 3 min read📅 2026-06-11

How to Fix: What is NSS error -5961 (PR_CONNECT_RESET_ERROR)

NSS error -5961 (PR_CONNECT_RESET_ERROR) occurs when the server refuses to connect, often due to a certificate mismatch or invalid SSL/TLS configuration.

Quick Answer: Check your SSL/TLS configuration and ensure that the server's certificate is valid and properly configured. You can try updating your system's certificates or using a different protocol like HTTP instead of HTTPS.

NSS error -5961 (PR_CONNECT_RESET_ERROR) is an error that occurs when attempting to establish a secure connection with a server, in this case, bitbucket.org. This error affects users who are trying to connect to the site using HTTPS protocol.

This error can be frustrating for users as it prevents them from accessing the website or performing tasks on bitbucket.org. In this guide, we will explore the root causes of this error and provide steps to resolve it.

⚠️ Common Causes

  • The primary reason for NSS error -5961 (PR_CONNECT_RESET_ERROR) is a mismatch between the server's expected cipher suite and the client's supported cipher suite. This can occur due to various reasons such as outdated or incompatible SSL/TLS versions, incorrect configuration of the system's SSL/TLS settings, or issues with the certificate chain.
  • Another possible reason for this error could be an issue with the server-side configuration, such as a misconfigured firewall or a problem with the server's SSL/TLS implementation.

🛠️ Step-by-Step Verified Fixes

Resolving the Issue using NSS Configuration

  1. Step 1: Step 1: Check and update the system's SSL/TLS settings to ensure they are compatible with the server's expected cipher suite. This can be done by checking the system's certificate store and ensuring that the correct certificates are installed.
  2. Step 2: Step 2: Verify that the NSS configuration is correctly set up to use the correct cipher suite. This can be done by checking the NSS error log for any errors related to the cipher suite or by using a tool like `openssl s_client` to test the connection.
  3. Step 3: Step 3: If necessary, update the system's SSL/TLS version to ensure compatibility with the server's expected version.

Resolving the Issue using OpenSSL

  1. Step 1: Step 1: Use `openssl s_client` to test the connection and verify that the cipher suite is correct. This can be done by running the command `openssl s_client -connect bitbucket.org:443 -msg` and checking the output for any errors related to the cipher suite.
  2. Step 2: Step 2: If necessary, update the system's SSL/TLS version or adjust the cipher suite settings using OpenSSL commands.

💡 Conclusion

To resolve NSS error -5961 (PR_CONNECT_RESET_ERROR) when connecting to bitbucket.org, it is essential to ensure that the system's SSL/TLS settings are compatible with the server's expected cipher suite. By following the steps outlined in this guide, users can resolve this issue and successfully connect to bitbucket.org using HTTPS protocol.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions