In typical public key infrastructure (PKI) arrangements, a valid public key certificate is validated (i.e., contains correct information) by a digital signature from a certificate authority (CA). Users, or their software on their behalf, check that the private key used to sign some certificate matches the public key in the CA's certificate. Since CA certificates are often signed by other, "higher ranking," CAs, there must necessarily be a highest CA, which provides the ultimate in attestation authority in that particular PKI scheme.
Create a self signed certificate
The applications required in this section:
- Makecert.exe can be downloaded from: http://msdn.microsoft.com/en-us/library/bfsktky3%28VS.80%29.aspx
- Pvk.exe can be downloaded from http://www.drh-consultancy.demon.co.uk/pvktool.zip
- Ssh-keygen (which is part of openssh) can be downloaded from http://www.openssh.com
- FileZilla can be downloaded from http://filezilla-project.org/download.php
- FreeSSHd can be downloaded from http://www.freesshd.com
- OpenSSL can be download from: http://www.openssl.org/source
- WordPad - included in Windows
Follow these steps:
- Put Makecert.exe application on C: drive.
- Open a command line window.
- Type C:\makecert -r -n "CN=NewStart" -pe -ss my to create a self signed certificate
- Type C:\makecert -n "CN=roma" -pe -ss my -in NewStart -is my to create a new certificate linked to previous one
- Export key to pfx using this command: certmgr -c -s my -put roma.pfx
- Extract private key as .pem from .pfx
Type D:\OpenSSL\openssl.exe pkcs12 -in D:\roma.pfx -nocerts -out d:\roma.pem
- Open D:\roma.pem with WordPad and delete everything before -----BEGIN RSA PRIVATE KEY-----
- Load roma.pem in FileZilla client (go to Edit menu->Settings->Connection->SFTP)
It will convert roma.pem to roma.ppk (PUTTY key format)
- Extract public key from roma.pem and create roma.pub
D:\ssh-keygen -e -f d:\roma.pem D:\roma.pub
- In freeSSHd server, go to Settings->Authentication
- Select the Public key authentication and disable all other methods.
- Indicate the public key folder and make sure you copy the roma.pub file in that folder.
To make a backup to SFTP server with Backup4all, please follow these steps:
- Open Backup4all, press File->New Backup
- Press Advanced mode
- Type a name for your backup job
- On SFTP server press Edit configuration
- Enter the SFTP server details
- Under Private key section, select Personal certificate store and choose roma certificate from the list.
- Press OK.
- Go to Sources page and add the backup sources.
- On Type page, select the backup type to use.
- Press Save and run.
Video Tutorial Backup to SFTP server:
Backup4all 4.x or later.