Bug 29285 - Error on latest build when connecting to Postgresql using SSL: unsafe legacy renegotiation disabled
Summary: Error on latest build when connecting to Postgresql using SSL: unsafe legacy ...
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: Mono.Security ()
Version: master
Hardware: Other Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-04-21 18:59 UTC by Chris Webb
Modified: 2015-04-21 19:00 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 29285 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Chris Webb 2015-04-21 18:59:06 UTC
When using the most up-to-date master branch from github.  An issue has been introduced when attempting to use Npgsql to connect to a postgres server on the same box using an SSL connection.  I get the following exception inside my application:

Npgsql.NpgsqlException:
Failed to establish a connection to 'localhost'.
  at Npgsql.NpgsqlClosedState.Open (Npgsql.NpgsqlConnector context, Int32 timeout) <0x41949000 + 0x01550> in <filename unknown>:0 
  at Npgsql.NpgsqlConnector.Open () <0x41947e70 + 0x00132> in <filename unknown>:0 
  at Npgsql.NpgsqlConnectorPool.GetPooledConnector (Npgsql.NpgsqlConnection Connection) <0x41945230 + 0x0090f> in <filename unknown>:0 


And when I check the logs for postgresql I am seeing the following corresponding errors:



2015-04-21 22:44:55 UTC LOG:  could not accept SSL connection: unsafe legacy renegotiation disabled
2015-04-21 22:45:00 UTC LOG:  could not accept SSL connection: unsafe legacy renegotiation disabled
2015-04-21 22:46:00 UTC LOG:  could not accept SSL connection: unsafe legacy renegotiation disabled
2015-04-21 22:46:18 UTC LOG:  could not accept SSL connection: unsafe legacy renegotiation disabled

I tested the same code with 3.12.0 with no issues.

Server is ubuntu 14.04.2 with the latest Npgsql binaries.