You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Øyvind Lode <oy...@lode.is> on 2013/10/25 12:59:28 UTC
[users@httpd] Trouble installing renewed SSL certificate
Hi list!
The ssl cert on my apache server have expired.
It is actually a server at work - a important one as well so I'm a bit stressed at the moment.
The cert is renewed and I have received the cert files.
I'm now trying to install them but I can't get it to work.
I thought it was as simple as just copying the new crt file to the server and restart apache but apache start fails.
I see this in the log:
509 certificate routines:X509_check_private_key:key values mismatch
Server: Apache 2.2.22 on Ubuntu 12.04.
How does one install a renewed ssl cert?
Do I need to create a new private key and ca-bundle?
Please point me in the right direction.
Thanks
Øyvind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Trouble installing renewed SSL certificate
Posted by Øyvind Lode <oy...@lode.is>.
Solved!
The new certificate was issued with a new private key but I did not receive info about that.
I have now received both the crt and the private key and apache is up and running again.
Thanks
-----Original Message-----
From: Rainer M. Canavan [mailto:rainer.canavan@sevenval.com]
Sent: 25. oktober 2013 13:57
To: users@httpd.apache.org
Subject: Re: [users@httpd] Trouble installing renewed SSL certificate
On Oct 25, 2013, at 13:25 , Øyvind Lode <oy...@lode.is> wrote:
> Hi Harald.
>
> No.
>
> I just received the new certificate from Comodo.
>
> I assume they used the original csr file which I have stored somewhere
> :)
>
> I thought I documented what I did to set up the cert but can't for the life of me find it now.
If the same csr was used, it should be sufficient to replace the .crt.
> So I probably just need to create a new private key but memory does
> not serve me well right now haha
>
> I'm starting to believe that receiving a renewed cert is actually like receiving a cert in the first place and should be installed like a completely new cert.
> If you know of a good article on how to install a ssl cert including creating a new private key and ca-bundle please let me know.
A certificate is linked to the specific private key it was created for. The modulus of that key was stored in the CSR that was used to generate the certificate. You need to find the correct key, since you won't be able to generate a matching one. You can check the modulus of the key, csr and certificate with openssl:
openssl x509 -noout -modulus -in certificate.crt openssl rsa -noout -modulus -in private.key openssl req -noout -modulus -in csr.csr
You probably should check the certificate as well, especially the CN of the Subject, e.g. with
openssl x509 -noout -text -in certificate.crt
rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Trouble installing renewed SSL certificate
Posted by "Rainer M. Canavan" <ra...@sevenval.com>.
On Oct 25, 2013, at 13:25 , Øyvind Lode <oy...@lode.is> wrote:
> Hi Harald.
>
> No.
>
> I just received the new certificate from Comodo.
>
> I assume they used the original csr file which I have stored somewhere :)
>
> I thought I documented what I did to set up the cert but can't for the life of me find it now.
If the same csr was used, it should be sufficient to replace the .crt.
> So I probably just need to create a new private key but memory does not serve me well right now haha
>
> I'm starting to believe that receiving a renewed cert is actually like receiving a cert in the first place and should be installed like a completely new cert.
> If you know of a good article on how to install a ssl cert including creating a new private key and ca-bundle please let me know.
A certificate is linked to the specific private key it was created for. The modulus
of that key was stored in the CSR that was used to generate the certificate. You need
to find the correct key, since you won't be able to generate a matching one. You
can check the modulus of the key, csr and certificate with openssl:
openssl x509 -noout -modulus -in certificate.crt
openssl rsa -noout -modulus -in private.key
openssl req -noout -modulus -in csr.csr
You probably should check the certificate as well, especially the CN of the Subject, e.g. with
openssl x509 -noout -text -in certificate.crt
rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Trouble installing renewed SSL certificate
Posted by Øyvind Lode <oy...@lode.is>.
Hi Harald.
No.
I just received the new certificate from Comodo.
I assume they used the original csr file which I have stored somewhere :)
I thought I documented what I did to set up the cert but can't for the life of me find it now.
So I probably just need to create a new private key but memory does not serve me well right now haha
I'm starting to believe that receiving a renewed cert is actually like receiving a cert in the first place and should be installed like a completely new cert.
If you know of a good article on how to install a ssl cert including creating a new private key and ca-bundle please let me know.
It's very much appreciated.
-----Original Message-----
From: Harald Stendal [mailto:harald.stendal@gmail.com]
Sent: 25. oktober 2013 13:09
To: users@httpd.apache.org
Subject: Re: [users@httpd] Trouble installing renewed SSL certificate
Øyvind,
It sounds like the configured private key does not match your new certificate.
did you create a new private key and CSR when you ordered the new certificate?
Harald
On 10/25/2013 12:59 PM, Øyvind Lode wrote:
> Hi list!
>
> The ssl cert on my apache server have expired.
>
> It is actually a server at work - a important one as well so I'm a bit stressed at the moment.
>
> The cert is renewed and I have received the cert files.
>
> I'm now trying to install them but I can't get it to work.
>
> I thought it was as simple as just copying the new crt file to the server and restart apache but apache start fails.
>
> I see this in the log:
>
> 509 certificate routines:X509_check_private_key:key values mismatch
>
> Server: Apache 2.2.22 on Ubuntu 12.04.
>
> How does one install a renewed ssl cert?
>
> Do I need to create a new private key and ca-bundle?
>
> Please point me in the right direction.
>
> Thanks
>
> Øyvind
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Trouble installing renewed SSL certificate
Posted by Harald Stendal <ha...@gmail.com>.
Øyvind,
It sounds like the configured private key does not match your new
certificate.
did you create a new private key and CSR when you ordered the new
certificate?
Harald
On 10/25/2013 12:59 PM, Øyvind Lode wrote:
> Hi list!
>
> The ssl cert on my apache server have expired.
>
> It is actually a server at work - a important one as well so I'm a bit stressed at the moment.
>
> The cert is renewed and I have received the cert files.
>
> I'm now trying to install them but I can't get it to work.
>
> I thought it was as simple as just copying the new crt file to the server and restart apache but apache start fails.
>
> I see this in the log:
>
> 509 certificate routines:X509_check_private_key:key values mismatch
>
> Server: Apache 2.2.22 on Ubuntu 12.04.
>
> How does one install a renewed ssl cert?
>
> Do I need to create a new private key and ca-bundle?
>
> Please point me in the right direction.
>
> Thanks
>
> Øyvind
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org