Skip to content

Mono.Security is outdated #264

Closed
Closed

Description

@hultqvist

The embedded Mono.Security.dll is of an older version with bugs fixed in later versions.
For example "Unsupported hash algorithm" https://bugzilla.xamarin.com/show_bug.cgi?id=20167

Preferably the system version would be used.

Activity

  1. franciscojunior commented on Jul 1, 2014

    @franciscojunior
    Member

    Thank you for the heads up, @hultqvist !

    We have an issue open to talk about dropping the dependency on Mono.Security here: #127 .

    We are considering using ms.net SSLStream. In fact, we already have the code which supports SSLStream and a flag to change using Mono.Security or SSLStream. Would you mind giving us some feedback about your Mono.Security usage with Npgsql?

    Thanks in advance.

  2. added this to the milestone on Jul 1, 2014
  3. hultqvist commented on Jul 2, 2014

    @hultqvist
    Author

    Well basically I removed the reference to the embedded Mono.Security and replaced it with a reference to Mono.Security as provided by the OS. Since then it has worked fine.
    I've not done any changes in the onfiguration of PostgreSQL relating to communication, and I'm connecting to localhost if that changes anything.

    Though this was done on Ubuntu 14.04 with additional updates of the mono runtime, but I guess the one provided with 14.04 is still newer.

    The problem before that was not with PostgreSQL but rather other parts of my code that communicated with outside web servers. Since the embedded older version got used there too they suddenly couldn't work with SSL as used by wordpress.com.

  4. franciscojunior commented on Jul 3, 2014

    @franciscojunior
    Member

    Thanks for your feedback, @hultqvist ! It will guide us to make the change as smooth as possible.

    I'd like to ask you a few more questions:

    Are you using any of the Mono security callbacks inside Npgsql?

    If you change your code to use SSLStream by using the line:

    connection.UseSslStream(true);
    

    does your program work ok?

    Thanks in advance.

  5. hultqvist commented on Jul 3, 2014

    @hultqvist
    Author

    It works when using

    connection.UseSslStream = true;
    

    Though I've found previously that when using SslStream it will into Mono.Security when run on a Linux platform.
    I believe the questions should be if it works on Windows. There I can't help.

  6. franciscojunior commented on Jul 3, 2014

    @franciscojunior
    Member

    It works when using

    Great!

    connection.UseSslStream = true;
    Though I've found previously that when using SslStream it will into Mono.Security when run on a Linux platform.

    I think so as Mono.Security must be the assembly which holds the SSlStream type.

    By using SSLStream, Npgsql wouldn't depend directly on Mono.Security assembly and the type of problem you are having now (outdated Mono.Security assembly) would be nonexistent.

    I believe the questions should be if it works on Windows. There I can't help.

    I think it would work ok as Microsoft implements the SSLStream.

    Thank you very much for your feedback, @hultqvist ! You helped a lot!

  7. added a commit that references this issue on Jul 11, 2014
    dad52aa
  8. roji commented on Jul 27, 2014

    @roji
    Member

    @franciscojunior, did we end up committing the new version of Mono.Security? If not, I think we probably want to do it for the 2.2 release?

  9. franciscojunior commented on Jul 27, 2014

    @franciscojunior
    Member

    Em 27/07/2014 09:35, "Shay Rojansky" [email protected] escreveu:

    @franciscojunior, did we end up committing the new version of Mono.Security? If not, I think we probably want to do it for the 2.2 release?

    I didn't commit it! Thanks for the heads up!

    —
    Reply to this email directly or view it on GitHub.

  10. added a commit that references this issue on Jul 30, 2014
    982f13f
  11. added theissue type on Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions