Solved

ssl certificates on rhel server rebuild

Posted on 2010-08-26
3
488 Views
Last Modified: 2012-05-10
I have apache webserver with ssl certificates, but he the rhel box needed to be rebuilt on a new server.

Can I transfer the existing certificates to the new server and point the ssl config file at them? The new server will take the ip of the old server when the build is finished.
0
Comment
Question by:mcgilljd
  • 2
3 Comments
 
LVL 76

Accepted Solution

by:
arnold earned 500 total points
Comment Utility
Yes, make sure to transfer both the key and the cert file unless the cert includes both.

The certificate is name based and not tied to a specific system.

See /etc/httpd/cond.d/ssl.conf for the location of the files you need.

0
 

Author Comment

by:mcgilljd
Comment Utility
I get it, the certificates and the key are tied to the domain name and not the box.  So even though I am going from 32bit rhel to 64bit rhel, it shouldn't matter?

can I copy /etc/httpd/conf.d/ssl.conf from the old to the new and cp the crts and key to the right place and it should work?  Assuming the chown and chmod stuff is right?

Then just restart httpd?
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
pretty much.  It is often best to compare the two versus taking one and blindingly copying it.
Restart should do the trick.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now