# Problem setting up certificate

**URL:** <https://www.ruby-forum.com/t/problem-setting-up-certificate/245480>\
**Category:** NGINX\
**Created:** [May 31, 2013, 8:40pm UTC](https://www.ruby-forum.com/t/problem-setting-up-certificate/245480 "2013-05-31T20:40:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [May 31, 2013, 8:40pm UTC](https://www.ruby-forum.com/t/problem-setting-up-certificate/245480/1 "2013-05-31T20:40:48Z")

</div>

I’m getting this error after installing the certificate & key:

[emerg] 809#0:  
SSL\_CTX\_use\_PrivateKey\_file(“/paging/site/config/server.key”) failed  
(SSL: error:0B080074:x509 certificate  
routines:X509\_check\_private\_key:key values mismatch)

I’ve tried this twice, (started over with a new csr, thinking I had  
screwed up and used the wrong key or something), and am still getting  
the error. I’ve double-checked to make sure that nginx is using the  
config file I expect, and that it specifies the correct locations for  
the cert & key.

How should I proceed in trouble-shooting this?

–  
Scott R.  
removed\_email\_address@domain.invalid  
[http://www.elevated-dev.com/](http://www.elevated-dev.com/)  
(303) 722-0567 voice

---

<div class="post-metadata">

**Author:** ![scottrutherford](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@scottrutherford](https://www.ruby-forum.com/u/scottrutherford)\
**Post date:** [May 31, 2013, 9:05pm UTC](https://www.ruby-forum.com/t/problem-setting-up-certificate/245480/2 "2013-05-31T21:05:20Z")

</div>

Meh, never mind. Supposedly same source of certificates as prior server  
installed within this same institution (I didn’t do the prior one), but  
this one is in root-\>mine order instead of mine-\>root order. Edited the  
cert file to switch them around, and now it works.

On May 31, 2013, at 12:40 PM, Scott R. wrote:

> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

–  
Scott R.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> **[Elevated Software Development, Inc.](http://www.elevated-dev.com/)**

(303) 722-0567 voice
