Force ssl connection

Поиск
Список
Период
Сортировка
От Muhammad Bashir Al-Noimi
Тема Force ssl connection
Дата
Msg-id 51DB5A1A.6010902@gmail.com
обсуждение исходный текст
Ответы Re: Force ssl connection  (Adrian Klaver <adrian.klaver@gmail.com>)
Список pgsql-general
      Howdy,

I want to prevent any Postgresql database connection other than SSL but
it didn't work and my client can connect without SSL!

* How can fix this issue?

P.S. To force SSL connection I made the following steps:

On server side (ubuntu 12.10 x64 - Postgresql 9.1)
1) Created server.key and server.crt
2) Modified pg_hba.conf and added "hostnossl  all  all  0.0.0.0/0 reject"
3) Modified postgresql.conf "ssl = on"
4) Restarted the server

On client side (Qt 5.1)
db.setDatabaseName("mydb");
db.setHostName("localhost");
db.setUserName("postgres");
db.setPassword("****");
db.setPort(5432);
db.setConnectOptions("requiressl=1");
if (!db.open()) {
     qDebug() << "Unable to connect!";
}

--
Best Regards,
Muhammad Bashir Al-Noimi



В списке pgsql-general по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Longest Common Subsequence in Postgres - Algorithm Challenge
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Force ssl connection