Its not a command. Go to /etc/httpd/conf.d/ and open ssl.conf in vi or whichever editor you like. Search for the below mentioned Directive line
SSLCertificateFile: '/etc/pki/tls/certs/localhost.crt' edit this line and replace localhost.crt with your certificate name here ca-bundle.crt or ca-bundle.trust.crt Also, replace SSLCertificateKeyFile directive with your private key. On Sun, 25 Dec 2022, 14:14 Jeffrey Denison, <jeffrey.deni...@gmail.com> wrote: > Thanks Vicky. Can you give me the whole command? > > On 12/24/22, vicky chb <vkych...@gmail.com> wrote: > > Hi, > > > > Change "localhost.crt" to your current certificate name present in the > > mentioned directory. The syntax is by default, you may need to change as > > per your certificate names. > > > > Instead of this: > > SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' > > > > do this: > > SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.crt' > > > > or > > > > SSLCertificateFile: file '/etc/pki/tls/certs/ca-bundle.trust.crt' > > > > > > On Sun, 25 Dec 2022, 11:18 Jeffrey Denison, <jeffrey.deni...@gmail.com> > > wrote: > > > >> Hi, > >> I installed Apache 2.4.54 on Fedora 37. I get the following error when > >> I attempt to run it: > >> > >> $ httpd > >> AH00526: Syntax error on line 101 of /etc/httpd/conf.d/ssl.conf: > >> SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not > >> exist or is empty > >> > >> $ ls /etc/pki/tls/certs > >> ca-bundle.crt ca-bundle.trust.crt > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > >> For additional commands, e-mail: users-h...@httpd.apache.org > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > >