Hello,
I am currently adding SSL support to the Npgsql driver (the .NET data
provider for PostgreSQL). I have tested with the Mentalis Secure Library
( http://www.mentalis.org/soft/projects/ssocket/). I am creating the
SecureTcpSocket as an instance that uses Ssl version 3.0. The PostgreSQL
server is configured as described in http://developer.postgresql.org/docs...s/ssl-tcp.html . SSL support
is added in pg_hba.conf, via hostssl
The exception I get when I run a test application to connect the
database is something like that:
Unhandled Exception: Npgsql.NpgsqlEx ception: Error in Open() --->
System.IO.IOExc eption: An I/O exception occurred. --->
Org.Mentalis.Se curity.Security Exception
: An error occurs while communicating with the remote host. --->
Org.Mentalis.Se curity.Ssl.Shar ed.SslException : The server hello message
uses a protocol that was not recognized.
Do you have any idea what can be the reason? Thanks in advance.
Regards,
Angel
Angel T. Todorov
PGP public key ID: 1024D/
<http://pgp.mit.edu:113 71/pks/lookup?op=get&s earch=0x35454B4 C> 35454B4C 7 3668
What version of PostgreSQL are you using?
---------------------------------------------------------------------------
Angel Todorov wrote: Hello, I am currently adding SSL support to the Npgsql driver (the .NET data provider for PostgreSQL). I have tested with the Mentalis Secure Library (http://www.mentalis.org/soft/projects/ssocket/). I am creating the SecureTcpSocket as an instance that uses Ssl version 3.0. The PostgreSQL server is configured as described in http://developer.postgresql.org/docs...s/ssl-tcp.html . SSL support is added in pg_hba.conf, via hostssl The exception I get when I run a test application to connect the database is something like that:
Unhandled Exception: Npgsql.NpgsqlEx ception: Error in Open() ---> System.IO.IOExc eption: An I/O exception occurred. ---> Org.Mentalis.Se curity.Security Exception : An error occurs while communicating with the remote host. ---> Org.Mentalis.Se curity.Ssl.Shar ed.SslException : The server hello message uses a protocol that was not recognized.
Do you have any idea what can be the reason? Thanks in advance.
Regards,
Angel Angel T. Todorov PGP public key ID: 1024D/ <http://pgp.mit.edu:113 71/pks/lookup?op=get&s earch=0x35454B4 C> 35454B4C
--
Bruce Momjian | http://candle.pha.pa.us pg***@candle.ph a.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postg resql.org
It is 7.3.3
The Npgsql is 0.5, which supports the 2.0 protocol.
Angel
-----Original Message-----
From: Bruce Momjian [mailto:pg***@ca ndle.pha.pa.us]
Sent: Monday, September 29, 2003 3:03 AM
To: Angel Todorov
Cc: PostgreSQL General
Subject: Re: [GENERAL] PostgreSQL SSL communication with SecureTcpClient
(Ssl v 3.0)
What version of PostgreSQL are you using?
------------------------------------------------------------------------
---
Angel Todorov wrote: Hello, I am currently adding SSL support to the Npgsql driver (the .NET data provider for PostgreSQL). I have tested with the Mentalis Secure
Library (http://www.mentalis.org/soft/projects/ssocket/). I am creating the SecureTcpSocket as an instance that uses Ssl version 3.0. The
PostgreSQL server is configured as described in http://developer.postgresql.org/docs...s/ssl-tcp.html . SSL
support is added in pg_hba.conf, via hostssl The exception I get when I run a test application to connect the database is something like that:
Unhandled Exception: Npgsql.NpgsqlEx ception: Error in Open() ---> System.IO.IOExc eption: An I/O exception occurred. ---> Org.Mentalis.Se curity.Security Exception : An error occurs while communicating with the remote host. ---> Org.Mentalis.Se curity.Ssl.Shar ed.SslException : The server hello
message uses a protocol that was not recognized.
Do you have any idea what can be the reason? Thanks in advance.
Regards,
Angel Angel T. Todorov PGP public key ID: 1024D/ <http://pgp.mit.edu:113 71/pks/lookup?op=get&s earch=0x35454B4 C>
35454B4C
--
Bruce Momjian | http://candle.pha.pa.us pg***@candle.ph a.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania
19073
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match
Angel Todorov wrote: It is 7.3.3
We have fixed many SSL items in 7.4. Can you grab a snapshot from our
FTP server and check that?
--------------------------------------------------------------------------- The Npgsql is 0.5, which supports the 2.0 protocol.
Angel
-----Original Message----- From: Bruce Momjian [mailto:pg***@ca ndle.pha.pa.us] Sent: Monday, September 29, 2003 3:03 AM To: Angel Todorov Cc: PostgreSQL General Subject: Re: [GENERAL] PostgreSQL SSL communication with SecureTcpClient (Ssl v 3.0)
What version of PostgreSQL are you using?
------------------------------------------------------------------------ ---
Angel Todorov wrote: Hello, I am currently adding SSL support to the Npgsql driver (the .NET data provider for PostgreSQL). I have tested with the Mentalis Secure Library (http://www.mentalis.org/soft/projects/ssocket/). I am creating the SecureTcpSocket as an instance that uses Ssl version 3.0. The PostgreSQL server is configured as described in http://developer.postgresql.org/docs...s/ssl-tcp.html . SSL support is added in pg_hba.conf, via hostssl The exception I get when I run a test application to connect the database is something like that:
Unhandled Exception: Npgsql.NpgsqlEx ception: Error in Open() ---> System.IO.IOExc eption: An I/O exception occurred. ---> Org.Mentalis.Se curity.Security Exception : An error occurs while communicating with the remote host. ---> Org.Mentalis.Se curity.Ssl.Shar ed.SslException : The server hello message uses a protocol that was not recognized.
Do you have any idea what can be the reason? Thanks in advance.
Regards,
Angel Angel T. Todorov PGP public key ID: 1024D/ <http://pgp.mit.edu:113 71/pks/lookup?op=get&s earch=0x35454B4 C> 35454B4C
-- Bruce Momjian | http://candle.pha.pa.us pg***@candle.ph a.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
--
Bruce Momjian | http://candle.pha.pa.us pg***@candle.ph a.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postg resql.org so that your
message can get through to the mailing list cleanly
Hello, is it something specific about the startup packet length? I can
try to see if I can fix it if it is from the driver itself. I will try
with 7.4, but it should also operate with postgresql 7.2 and 7.3
Angel
-----Original Message-----
From: pg************* ****@postgresql .org
[mailto:pg****** ***********@pos tgresql.org] On Behalf Of Bruce Momjian
Sent: Monday, September 29, 2003 4:13 AM
To: Angel Todorov
Cc: 'PostgreSQL General'
Subject: Re: [GENERAL] PostgreSQL SSL communication with SecureTcpClient
(Ssl
Angel Todorov wrote: It is 7.3.3
We have fixed many SSL items in 7.4. Can you grab a snapshot from our
FTP server and check that?
------------------------------------------------------------------------
--- The Npgsql is 0.5, which supports the 2.0 protocol.
Angel
-----Original Message----- From: Bruce Momjian [mailto:pg***@ca ndle.pha.pa.us] Sent: Monday, September 29, 2003 3:03 AM To: Angel Todorov Cc: PostgreSQL General Subject: Re: [GENERAL] PostgreSQL SSL communication with
SecureTcpClient (Ssl v 3.0)
What version of PostgreSQL are you using?
------------------------------------------------------------------------ ---
Angel Todorov wrote: Hello, I am currently adding SSL support to the Npgsql driver (the .NET
data provider for PostgreSQL). I have tested with the Mentalis Secure Library (http://www.mentalis.org/soft/projects/ssocket/). I am creating the SecureTcpSocket as an instance that uses Ssl version 3.0. The PostgreSQL server is configured as described in http://developer.postgresql.org/docs...s/ssl-tcp.html . SSL support is added in pg_hba.conf, via hostssl The exception I get when I run a test application to connect the database is something like that:
Unhandled Exception: Npgsql.NpgsqlEx ception: Error in Open() ---> System.IO.IOExc eption: An I/O exception occurred. ---> Org.Mentalis.Se curity.Security Exception : An error occurs while communicating with the remote host. ---> Org.Mentalis.Se curity.Ssl.Shar ed.SslException : The server hello message uses a protocol that was not recognized.
Do you have any idea what can be the reason? Thanks in advance.
Regards,
Angel Angel T. Todorov PGP public key ID: 1024D/ <http://pgp.mit.edu:113 71/pks/lookup?op=get&s earch=0x35454B4 C> 35454B4C
-- Bruce Momjian | http://candle.pha.pa.us pg***@candle.ph a.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
--
Bruce Momjian | http://candle.pha.pa.us pg***@candle.ph a.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania
19073
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postg resql.org so that your
message can get through to the mailing list cleanly
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives? http://archives.postgresql.org
Angel Todorov wrote: Hello, is it something specific about the startup packet length? I can try to see if I can fix it if it is from the driver itself. I will try with 7.4, but it should also operate with postgresql 7.2 and 7.3
Sorry, no idea.
--------------------------------------------------------------------------- Angel
-----Original Message----- From: pg************* ****@postgresql .org [mailto:pg****** ***********@pos tgresql.org] On Behalf Of Bruce Momjian Sent: Monday, September 29, 2003 4:13 AM To: Angel Todorov Cc: 'PostgreSQL General' Subject: Re: [GENERAL] PostgreSQL SSL communication with SecureTcpClient (Ssl
Angel Todorov wrote: It is 7.3.3
We have fixed many SSL items in 7.4. Can you grab a snapshot from our FTP server and check that?
------------------------------------------------------------------------ ---
The Npgsql is 0.5, which supports the 2.0 protocol.
Angel
-----Original Message----- From: Bruce Momjian [mailto:pg***@ca ndle.pha.pa.us] Sent: Monday, September 29, 2003 3:03 AM To: Angel Todorov Cc: PostgreSQL General Subject: Re: [GENERAL] PostgreSQL SSL communication with
SecureTcpClient (Ssl v 3.0)
What version of PostgreSQL are you using?
------------------------------------------------------------------------ ---
Angel Todorov wrote: Hello, I am currently adding SSL support to the Npgsql driver (the .NET data provider for PostgreSQL). I have tested with the Mentalis Secure Library (http://www.mentalis.org/soft/projects/ssocket/). I am creating the SecureTcpSocket as an instance that uses Ssl version 3.0. The PostgreSQL server is configured as described in http://developer.postgresql.org/docs...s/ssl-tcp.html . SSL support is added in pg_hba.conf, via hostssl The exception I get when I run a test application to connect the database is something like that:
Unhandled Exception: Npgsql.NpgsqlEx ception: Error in Open() ---> System.IO.IOExc eption: An I/O exception occurred. ---> Org.Mentalis.Se curity.Security Exception : An error occurs while communicating with the remote host. ---> Org.Mentalis.Se curity.Ssl.Shar ed.SslException : The server hello message uses a protocol that was not recognized.
Do you have any idea what can be the reason? Thanks in advance.
Regards,
Angel Angel T. Todorov PGP public key ID: 1024D/ <http://pgp.mit.edu:113 71/pks/lookup?op=get&s earch=0x35454B4 C> 35454B4C
-- Bruce Momjian | http://candle.pha.pa.us pg***@candle.ph a.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
-- Bruce Momjian | http://candle.pha.pa.us pg***@candle.ph a.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to ma*******@postg resql.org so that your message can get through to the mailing list cleanly
--
Bruce Momjian | http://candle.pha.pa.us pg***@candle.ph a.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
On Mon, 29 Sep 2003, Angel Todorov wrote: Hello, I am currently adding SSL support to the Npgsql driver (the .NET data provider for PostgreSQL). I have tested with the Mentalis Secure Library (http://www.mentalis.org/soft/projects/ssocket/). I am creating the SecureTcpSocket as an instance that uses Ssl version 3.0. The PostgreSQL server is configured as described in http://developer.postgresql.org/docs...s/ssl-tcp.html . SSL support is added in pg_hba.conf, via hostssl The exception I get when I run a test application to connect the database is something like that:
Unhandled Exception: Npgsql.NpgsqlEx ception: Error in Open() ---> System.IO.IOExc eption: An I/O exception occurred. ---> Org.Mentalis.Se curity.Security Exception : An error occurs while communicating with the remote host. ---> Org.Mentalis.Se curity.Ssl.Shar ed.SslException : The server hello message uses a protocol that was not recognized.
Do you have any idea what can be the reason? Thanks in advance.
You are aware that the connection does not start as a SSL connection, but
begins as a normal one and then switches over.
Kris Jurka
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings
Kris Jurka <bo***@ejurka.c om> writes: On Mon, 29 Sep 2003, Angel Todorov wrote: : An error occurs while communicating with the remote host. ---> Org.Mentalis.Se curity.Ssl.Shar ed.SslException : The server hello message uses a protocol that was not recognized.
Do you have any idea what can be the reason? Thanks in advance.
You are aware that the connection does not start as a SSL connection, but begins as a normal one and then switches over.
Specifically, you need to eat the initial "S" or "N" response byte from
the server before firing up the SSL startup handshake.
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postg resql.org This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Otis Green |
last post by:
Vote for or against a new newsgroup proposal.
To summarize what you need to do, just send an empty e-mail to
postgresql-ballot@netagw.com
You will receive a ballot by e-mail. Follow the instructions and vote.
_______________________________________________________________________
FIRST CALL FOR VOTES (of 2)
|
by: Edwin Engelen |
last post by:
I looked almost everywhere to find out how to communicate over SSL using
..NET. I hope someone can help me out...
I need to communicatie with a server of a service provider. This
communication must be secured with SSL. The comminication consists of
messages/strings (no web page content). I will send a request string, and
the server will...
|
by: Dan V. |
last post by:
Situation:
I have to connect with my Windows 2000 server using VS.NET 2003 and C# and
connect to a remote Linux server at another company's office and query their
XML file. Their file may be updated every hour or so. How can I do this
easily? I would like to use secure communication even encryption if
possible. I would query and insert...
|
by: Marc G. Fournier |
last post by:
After several fixes were backpatches to the 7_3_STABLE branch, we have now
released a 7.3.5. As the list of Changes since 7.3.4 is quite small, they
are included in this email:
* Force zero_damaged_pages to be on during recovery from WAL
* Prevent some obscure cases of "variable not in subplan target
lists"
* Force stats processes ...
|
by: Bob.Henkel |
last post by:
I write this to tell you why we won't use postgresql even though we wish we
could at a large company. Don't get me wrong I love postgresql in many
ways and for many reasons , but fact is fact. If you need more detail I
can be glad to prove all my points. Our goal is to make logical systems.
We don't want php,perl, or c++ making all the...
| |
by: Brandon Craig Rhodes |
last post by:
I now have SSL encryption working between psql and my PostgreSQL
server, but want to enable client verification of the server's SSL
certificate (and eventually vice-versa).
My problem is that when I copy my root.crt certificate into my
..postgresql directory, I am given the error:
psql: unrecognized SSL error code
which I find terribly...
|
by: Mike Morris |
last post by:
Hi,
I've setup a postgres server (7.4) and confirmed that SSL is enabled - I can successfully
connect via tcp socket over SSL using the psql client.
From PHP4, how can I get the pg_connect function to negotiate an SSL connection?
I gather from researching the issue that pg_connect uses the same libraries as psql, so that
this should be...
|
by: AeonOfTime |
last post by:
Let's assume a web application (in this case a browser-based game)
with a custom HTTP server built on PHP, and a client also built on
PHP. The client uses the server to access and change data. Even if the
client server communication is not directly visible to the user (who
logs into the client), the fact that the server is publicly accessible...
|
by: nampet |
last post by:
We set up a new system with the OS and database below.
Now some pages are not loading in browser.
the error is:
but the same code is no problem with old server..
i can also insert the data into database with some pages.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |