Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I've been asked to remove certificates from some of our servers, but I don't know anything about httpd configuration. If I have one server where if I do this

/usr/sbin/httpd -t -DDUMP_CERTS 2>/dev/null | /bin/sort -u

I get


and I only want to keep domain3.cert. How can I remove the others?

If /etc/pki/tls/certs/localhost.crt is the only one on a machine, do I have to remove it in a different way? I tried commenting out the line mentioning that localhost.crt in /etc/httpd/conf.d/ssl.conf but then httpd reports failed when I do a service restart.

share|improve this question

1 Answer 1

SSL certificate is just a file, you can remove *.cert files. However, in your case, to fix httpd failed report, You need to commented out SSLCertificateFile from your VirtualHost and disable mod_ssl.

share|improve this answer
By doing this you will lose the ssl/tls on your site. That is probably not what you want! Try reading this httpd.apache.org/docs/2.4/ssl/ssl_howto.html –  Thomas K Oct 27 '14 at 11:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.