LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-07-2010, 03:11 PM   #1
replica88
Member
 
Registered: Nov 2009
Posts: 48

Rep: Reputation: 18
ssl certificate renewal for vsftpd on ubuntu


I am currently using vsftpd with ssl support

Currently when the certificate expires I have to generate a new certificate and distribute that new certificate among the clients.

Ideally I would like automatic renewal of the certificate and that certificate to then be transferred to the client upon connection.

I am relatively new to Linux and this is a problem I cant seem to overcome myself, any advice or links to how-to's would be appreciated.

The ftp client I am using is curlFTPfs as I need to ftp directory to be mounted locally, below is the command with debugging:

Code:
root@Fileserver:/scripts# curlftpfs -v -o ssl -o cacert=/certificate/ssl-cert-snakeoil.pem -o no_verify_hostname ftp://ftpaccount:ftppassword@192.168.1.254 /backup
* Couldn't find host 192.168.1.254 in the .netrc file, using defaults
* About to connect() to 192.168.1.254 port 21 (#0)
*   Trying 192.168.1.254... * connected
* Connected to 192.168.1.254 (192.168.1.254) port 21 (#0)
< 220 (vsFTPd 2.0.6)
> AUTH SSL
< 234 Proceed with negotiation.
* found 1 certificates in /certificate/ssl-cert-snakeoil.pem
*        server certificate verification OK
*        common name: FTPserver.cable.virginmedia.net (does not match '192.168.1.254')
*        server certificate expiration date OK
*        server certificate activation date OK
*        certificate public key: RSA
*        certificate version: #1
*        subject: C=XX,ST=There is no such thing outside US,L=Everywhere,O=OCOSA,OU=Office for Complication of Otherwise Simple Affairs,CN=FTPserver.cable.virginmedia.net,EMAIL=root@FTPserver.cable.virginmedia.net
*        start date: Wed, 07 Apr 2010 18:19:37 GMT
*        expire date: Fri, 07 May 2010 18:19:37 GMT
*        issuer: C=XX,ST=There is no such thing outside US,L=Everywhere,O=OCOSA,OU=Office for Complication of Otherwise Simple Affairs,CN=FTPserver.cable.virginmedia.net,EMAIL=root@FTPserver.cable.virginmedia.net
*        compression: DEFLATE
*        cipher: 3DES 168 CBC
*        MAC: SHA
> USER ftpaccount
< 331 Please specify the password.
> PASS ftppassword
< 230 Login successful.
> PBSZ 0
< 200 PBSZ set to 0.
> PROT P
< 200 PROT now Private.
> PWD
< 257 "/"
* Entry path is '/'
* Remembering we are in dir ""
* Connection #0 to host 192.168.1.254 left intact
Many thanks
 
Old 04-09-2010, 08:51 AM   #2
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
Why do your certificates expire every month? Usually they are valid for 1-2 years. If you are not a bank or an intelligence agency, you could as well go up to 5 years.

Anyway, if you really need to automate the process of certificate renewal then I suggest that you write a script to 1. generate the new certificate 2. put it somewhere on a known path inside the FTP so that users can download the new cert 3. restart your ftp server. Shouldn't be that difficult.
 
Old 04-14-2010, 05:28 AM   #3
replica88
Member
 
Registered: Nov 2009
Posts: 48

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by r0b0 View Post
Why do your certificates expire every month? Usually they are valid for 1-2 years. If you are not a bank or an intelligence agency, you could as well go up to 5 years.

Anyway, if you really need to automate the process of certificate renewal then I suggest that you write a script to 1. generate the new certificate 2. put it somewhere on a known path inside the FTP so that users can download the new cert 3. restart your ftp server. Shouldn't be that difficult.
Yes that is abit excessive, I will look it to it... thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SMIME certificate renewal FBergeron Linux - Software 2 03-29-2019 11:43 AM
How to import/use CAcert SSL root certificate to use SSL with Xchat IRC client? GrapefruiTgirl Linux - Software 9 04-05-2011 09:54 AM
vsftpd SSL problem (522 SSL connection failed) stringZ Linux - Server 8 05-05-2009 02:27 PM
vsFTPd - SSL connection and dynamic SSL ports toxoplasme Linux - Server 11 08-22-2008 10:50 PM
SSL Certificate Manager in Redhat Linux and vsftpd kitlarson Linux - Newbie 0 03-26-2007 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration