SSL Certificate generation for vsftpd on FreeBSD 5.3

Ryan J. Cavicchioni ryan at confabulator.net
Mon Dec 6 08:30:12 PST 2004


Also ... What ports does FTPS need open?

Ryan J. Cavicchioni wrote:

> How can I generate a .pem certificate to use for SSL/TLS with vsftpd.
>
> This is all that I could find:
>
> puppy# cd /usr/share/ssl/certs
> puppy# make vsftpd.pem
> umask 77 ; \
> PEM1=`/bin/mktemp /tmp/openssl.XXXXXX` ; \
> PEM2=`/bin/mktemp /tmp/openssl.XXXXXX` ; \
> /usr/bin/openssl req -newkey rsa:1024 -keyout $PEM1 -nodes -x509 -days 
> 365 -out $PEM2 ; \
> cat $PEM1 > vsftpd.pem ; \
> echo "" >> vsftpd.pem ; \
> cat $PEM2 >> vsftpd.pem ; \
> rm -f $PEM1 $PEM2
> Generating a 1024 bit RSA private key
>
> Is there a better way to do this? /usr/share/ssl/certs does not exist 
> and "make vsftpd.pem" does not work.
>
> Thanks.
>
> - Ryan
>
>
>


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.289 / Virus Database: 265.4.6 - Release Date: 12/5/2004



More information about the freebsd-questions mailing list