Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

309
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda