<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Configurazione_di_vsftpd_con_SSL</id>
	<title>Configurazione di vsftpd con SSL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Configurazione_di_vsftpd_con_SSL"/>
	<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Configurazione_di_vsftpd_con_SSL&amp;action=history"/>
	<updated>2026-05-05T21:35:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Configurazione_di_vsftpd_con_SSL&amp;diff=9484&amp;oldid=prev</id>
		<title>Gabriele.vivinetto: Created page with &quot;* Si hanno a disposizione, ad esempio i certificati generati da StartSSL:  ** certificato server  server.example.com.crt ** private key  server.example.com.key ** Certificati ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Configurazione_di_vsftpd_con_SSL&amp;diff=9484&amp;oldid=prev"/>
		<updated>2016-01-15T18:14:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;* Si hanno a disposizione, ad esempio i certificati generati da StartSSL:  ** certificato server  server.example.com.crt ** private key  server.example.com.key ** Certificati ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* Si hanno a disposizione, ad esempio i certificati generati da StartSSL:&lt;br /&gt;
&lt;br /&gt;
** certificato server&lt;br /&gt;
 server.example.com.crt&lt;br /&gt;
** private key&lt;br /&gt;
 server.example.com.key&lt;br /&gt;
** Certificati sub ca&lt;br /&gt;
 startcom-sub.class1.server.ca.crt&lt;br /&gt;
&lt;br /&gt;
* Installare il certificato server e la private key:&lt;br /&gt;
 sudo cp server.example.com.crt /etc/ssl/certs&lt;br /&gt;
&lt;br /&gt;
 sudo cp server.example.com.key /etc/ssl/private/&lt;br /&gt;
 sudo chmod 600 /etc/ssl/private/server.example.com.key&lt;br /&gt;
&lt;br /&gt;
 sudo cp startcom-sub.class1.server.ca.crt /usr/local/share/ca-certificates&lt;br /&gt;
 sudo update-ca-certificates&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;IMPORTANTE&amp;#039;&amp;#039;&amp;#039;: concatenare il certificato server con la subCA. Se non lo si fa, i client non riconosceranno come valido il certificato:&lt;br /&gt;
 cat server.example.com.crt startcom-sub.class1.server.ca.crt | sudo tee /etc/ssl/certs/server.example.com-bundle.crt&lt;br /&gt;
&lt;br /&gt;
* Configurare vsftpd:&lt;br /&gt;
&lt;br /&gt;
 sudoedit /etc/vsftpd.conf &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsa_cert_file=/etc/ssl/certs/cloud01.rvmgroup.it-bundle.crt&lt;br /&gt;
rsa_private_key_file=/etc/ssl/private/cloud01.rvmgroup.it.key&lt;br /&gt;
ssl_enable=YES&lt;br /&gt;
allow_anon_ssl=YES&lt;br /&gt;
force_local_data_ssl=NO&lt;br /&gt;
force_local_logins_ssl=NO&lt;br /&gt;
ssl_tlsv1=YES&lt;br /&gt;
ssl_sslv2=NO&lt;br /&gt;
ssl_sslv3=NO&lt;br /&gt;
require_ssl_reuse=NO&lt;br /&gt;
ssl_ciphers=HIGH&lt;br /&gt;
#debug_ssl=YES&lt;br /&gt;
#log_ftp_protocol=YES&lt;br /&gt;
#vsftpd_log_file=/var/log/vsftpd.log&lt;br /&gt;
#dual_log_enable=YES&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Riavviare:&lt;br /&gt;
 sudo /etc/init.d/vsftpd restart&lt;br /&gt;
&lt;br /&gt;
* Provare a connettersi con curl. &amp;#039;&amp;#039;&amp;#039;Attenzione:&amp;#039;&amp;#039;&amp;#039;: se non riconosce il certificato, verificare che in locale sia installata la catenza StartSSL:&lt;br /&gt;
 curl --ftp-ssl --capatch /etc/ssl/certs ftp://username:password@server.example.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Nel caso, decommentare le righe di loggin, riavviare vsftpd e fare il tail di&lt;br /&gt;
 sudo tail -f /var/log/vsftpd.log&lt;br /&gt;
&lt;br /&gt;
 sudo tail -f /var/log/xferlog&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;ATTENZIONE&amp;#039;&amp;#039;&amp;#039;: se non si connette, attenzione al firewall: non usa solo la porta 21 !!!&lt;br /&gt;
&lt;br /&gt;
=Riferimenti=&lt;br /&gt;
*[http://www.liberiangeek.net/2014/09/enable-secure-vsftpd-ubuntu-14-04-ssltls/ How To Enable Secure VSFTPD On Ubuntu 14.04 With SSL/TLS | Liberian Geek]&lt;br /&gt;
*[https://www.digitalocean.com/community/tutorials/how-to-configure-vsftpd-to-use-ssl-tls-on-an-ubuntu-vps How To Configure vsftpd to Use SSL/TLS on an Ubuntu VPS | DigitalOcean]&lt;br /&gt;
*[http://wiki.vpslink.com/Configuring_vsftpd_for_secure_connections_(TLS/SSL/SFTP) Configuring vsftpd for secure connections (TLS/SSL/SFTP) - VPSLink Wiki]&lt;br /&gt;
*[https://winscp.net/forum/viewtopic.php?t=12627 Cannot access vsFTPd service via WinSCP :: Support Forum :: WinSCP]&lt;br /&gt;
*[http://www.howsyournetwork.com/index.php/cID/49dc4e37/ID/46313c25b3e1cb6ccc4b7dc48b403215/fuseaction/base.detail.htm HowsYourNetwork.com]&lt;br /&gt;
*[http://www.linuxquestions.org/questions/linux-server-73/vsftpd-cannot-list-directory-in-ssl-4175429353/ vsftpd cannot list directory in SSL]&lt;br /&gt;
*[http://ubuntuforums.org/archive/index.php/t-1901964.html [ubuntu] Can&amp;#039;t get SSL to work over vsftpd [Archive] - Ubuntu Forums]&lt;br /&gt;
*[http://www.unixlore.net/articles/using-curl-for-ftp-over-ssl-file.html Unixlore.net - Linux and Unix Commandline tips, hacks and howtos]&lt;br /&gt;
*[http://forum.debianizzati.org/viewtopic.php?f=19&amp;amp;t=50888 [RISOLTO] VSFTPD non si avvia con certificato SSL valido • Debianizzati.Org]&lt;br /&gt;
*[http://curl.haxx.se/docs/sslcerts.html cURL - SSL CA Certificates]&lt;br /&gt;
*[http://site4fast.blogspot.it/2011/10/vsftpd-ssl-how-to.html SSL how to: install ssl on vsftpd]&lt;br /&gt;
*[https://access.redhat.com/solutions/3436 How to configure vsftpd with SSL/TLS on Red Hat Enterprise Linux ? - Red Hat Customer Portal]&lt;br /&gt;
*[https://www.thatsgeeky.com/2011/01/configuring-vsftpd-to-use-tls/ Configuring vsFTPd to use TLS « That&amp;#039;s Geeky]&lt;br /&gt;
*[http://serverfault.com/questions/661870/vsftpd-does-not-give-a-valid-certificate-using-ca-cert ssl - vsftpd does not give a valid certificate using CA cert. - Server Fault]&lt;/div&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
</feed>