Показаны сообщения с ярлыком SSL. Показать все сообщения
Показаны сообщения с ярлыком SSL. Показать все сообщения

вторник, 14 января 2014 г.

Сборка Squid3 с SSL в Debian

apt-get update
apt-get install openssl
apt-get install devscripts build-essential libssl-dev

apt-get source squid3
apt-get build-dep squid3
cd squid3-3.1.20
vim debian/rules
 

Находим секцию DEB_CONFIGURE_EXTRA_FLAGS . Добавляем :
--enable-ssl
--with-open-ssl="/etc/ssl/openssl.cnf"
 

Сохраняемся и выходим.
debuild -us -uc
cd ..
dpkg -i squid3_3.1.20-2.2_i386.deb

четверг, 12 сентября 2013 г.

Настраиваем ftp с TLS/SSL

Процесс установки ftp сервера рассмотрен ранее, поэтому начинаем настраивать SSL/TLS .

Создаём сертификат:
# cd /etc/ssl/
# /usr/bin/openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout vsftpd.pem -out vsftpd.pem


Настриваем vsftpd :
vim /etc/vsftpd.conf

# Turn on SSL
ssl_enable=YES
# Allow anonymous users to use secured SSL connections
allow_anon_ssl=YES
# All non-anonymous logins are forced to use a secure SSL connection in order to
# send and receive data on data connections.
force_local_data_ssl=YES
# All non-anonymous logins are forced to use a secure SSL connection in order to send the password.
force_local_logins_ssl=YES
# Permit TLS v1 protocol connections. TLS v1 connections are preferred
ssl_tlsv1=YES
# Permit SSL v2 protocol connections. TLS v1 connections are preferred
ssl_sslv2=NO
# permit SSL v3 protocol connections. TLS v1 connections are preferred
ssl_sslv3=NO
# Specifies the location of the RSA certificate to use for SSL encrypted connections
rsa_cert_file=/etc/ssl/vsftpd.pem
 
Рестартуем vsftpd . Ура! Всё работает.