background image

 
Nvision.com, Inc. 

Migrating from a FreeBSD Server to a FreeBSD v2 Server 

Moving Your Custom Digital Certificate 

The default digital certificate is already on your new VPSv2 server. This procedure applies 
only to custom certificate. 

1.

 

Using FTP or another method, copy the certificate and Private Key files to the new 
server. Both the certificate and the key are stored in the ~/etc/ directory of the FreeBSD 
Server server. The certificate should be in a file named ssl.cert, and the key should be in 
the ssl.pk file. If you use FTP, be sure to copy the files to the new server as ASCII files. 
You will need to copy them to the /usr/local/apache/conf/ directory on the FreeBSD v2 
Server. 

2.

 

It is a good idea to check your Private Key to make sure it has been decrypted. Use more 
or your favorite text editor to view the file. If your key has been decrypted, you should 
not see the following lines before the encoded elements of the key. 

Proc-Type: 4,ENCRYPTED 
DEK-Info: DES-EDE3-CBC,BCC23A5E16582F3D 

3.

 

If your Private Key does have those lines near the beginning, run the following 
command to remove the encryption. 

% openssl rsa -in ssl.pk -out ssl.pk 

4.

 

Edit your httpd.conf file (located in the /usr/local/apache/conf/ directory) to look for 
your certificate files. The following directives need to be added to the main section of 
your httpd.conf file. 

SSLCertificateFile /usr/local/apache/conf/ssl.cert 
SSLCertificateKeyFile /usr/local/apache/conf/ssl.pk 

5.

 

After you have added the certificate directives to your httpd.conf file, you need to run 
restart_apache to make Apache start using the new certificate. 

6.

 

Ensure that the new certificate is working by connecting to the domain your certificate is 
set up to use via HTTPS. For example, if your domain name were www.my-
domain.name, you would type the following into your browser's location bar. 
https://www.my-domain.name  

7.

 

If the page loads without any errors, find the lock icon on your browser and click on it 
(depending on your browser, you may need to double-click). This will bring up the 
certificate information, or a window that lets you view certificate information. Check to 
see that the certificate is using the correct domain name and has the correct information. 

Moving Your Custom Digital Certificate 

 

7

Содержание FreeBSD Server

Страница 1: ...Nvision com Inc FreeBSD Server to FreeBSD v2 Server Self Migration Process for FreeBSD v2 Server Administrators First Edition September 2003...

Страница 2: ...e Shadow Process 1 Creating Users 1 Adding Virtual Hosts and Other Apache Changes 1 Migrating Sendmail and Mail programs 3 Vinstalling Additional Add ons 5 Perl Modules 5 Migrating Databases 6 Moving...

Страница 3: ...ybe even days depending on your knowledge of the FreeBSD Server and FreeBSD v2 Servers and the amount of changes you have made to a standard FreeBSD Server server Starting the Shadow Process The Shado...

Страница 4: ...ciate each Virtual Host with a user and put the Virtual Host site under that user s home directory For example if you have a Virtual Host for test2 com and bob owns that site you would want to add the...

Страница 5: ...sts htdocs directory and cgi bin directory 5 To copy the htdocs directory go to the migrate accountname www vhosts www test1 com htdocs Type the following to copy the contents cd migrate accountname w...

Страница 6: ...d this run the migratesm script a second time using the following sysntax migratesm intodo This will interpret the input ALIASWS_TODO lines as follows Lines beginning with a pound sign are ignored Lin...

Страница 7: ...e lists will be copied to the FreeBSD v2 Server default location of usr local majordomo lists 8 When you have finished check the following files for errors etc mail aliases etc mail virtmaps etc mail...

Страница 8: ...eeBSD v2 Server now uses the default Perl method of installing modules To install a module using CPAN 1 Type the following at the shell prompt perl MCPAN e shell The first time you run CPAN you will b...

Страница 9: ...ysqladmin u root password your new password here In addition if you have other users you will need to create the extra users at this point with their proper permissions 3 Create the databases from the...

Страница 10: ...hose lines near the beginning run the following command to remove the encryption openssl rsa in ssl pk out ssl pk 4 Edit your httpd conf file located in the usr local apache conf directory to look for...

Страница 11: ...servers have cached their DNS before you have support change your DNS back and your TTL it will take those DNS servers 24 hours to update you DNS information again To avoid all this you can have suppo...

Страница 12: ...e to the root directory of the FreeBSD v2 Server Do this for each database that you have 12 SSH into your FreeBSD v2 Server and type the following to create the database structure and enter the data i...

Страница 13: ...cate a reference to another part of the same document The grey portion of the cross reference is hot linked to the appropriate section of the document followed by a page number also hot linked to the...

Страница 14: ...ues you might not discover by yourself The Tip List special element is used when multiple tips are used Note Used to highlight certain information for the reader Generally the Note element provides ad...

Отзывы: