Copy certificate files to a folder on another disk
I may have to reformat and reinstall the system for a server that has been hacked. Several accounts use ssl certificates for their domains and there is a certificate for shared ssl as well.What would be the command to copy/backup the files from the folders where they are located to a folder on a secondary backup drive?
I know that for each certificate the request file that was generated on the server and provided to the certificate company is typically located in /etc/httpd/conf/ssl.csr/
The certificate key file that was generated on the server is located in /etc/httpd/conf/ssl.key/ and
the certificate that was provided (geotrust, thawte, etc) is located in /etc/httpd/conf/ssl.crt/
Also, I'm not sure if some clients use chained certificates. If so I may need chained-root certificate. I'm not sure what to do if this is the case.
Finally, after having reformatted the primary disk and reinstalled the system (uses cPanel) I suppose that all I have to do is to copy the files back to above folders on the primary disk? Did I miss something? I do have techs to do the job (outsourced support), but would like to learn for myself. Hoping for some input.
Thanks
John