Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

308
Views
Apache2 - Why Private Key and Certificate do not match?

I want to set ssl to my server which runs with apache. So i followed the instructions given from google. I asked for a ssl certificate for my domain and I got the ssl-mysite.key file. Unfortunately this is the only file i have received from my provider.

However you need an SSLCertificateChainFile and SSLCertificateFile I found a SSLCertificateFile inside /etc/ssl/certs/ca-certificates.crt tried to add this to my mysite.conf file

<VirtualHost *:80>
    ServerName www.mysite.com
    ServerAlias mysite.com

    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/ca-certificates.crt
    SSLCertificateKeyFile /etc/ssl/sites-pk.key
    ErrorLog ${APACHE_LOG_DIR}/mysite-error.log
...

now apache can't start the server and throws console output

So I looked up the mysite-error.log for more informations and i got

[ssl:emerg] [pid 956:tid 1234567890] AH0123: Certificate and private key www.mysite.de:443:0 from /etc/ssl/certs/ca-certificates.crt and /etc/ssl/sites-pk.key do not match

I thought maybe its because I use the port 80 in the .conf but if I change to 443 the server even doesn't start.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!