LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-10-2017, 09:52 AM   #1
etcetera
Member
 
Registered: Aug 2004
Posts: 271

Rep: Reputation: 16
SSL certificate generation question - No certificate matches private key


https://langui.sh/2009/10/31/create-...y-via-openssl/

Looking at the above page, I generated a private SSL key and a Certificate Signing Request.


# openssl req -new -nodes -newkey rsa:2048 -keyout edw2.key -out edw2.csr

That worked. I submitted the EDW2.csr file and got back a .cer file. (signed certificate). When I attempted to combine them into a single file (.pfx) like this, I get an error:


# openssl pkcs12 -export -in edw.pem -inkey edw2.key -out edw2.pfx

No certificate matches private key
 
Old 04-10-2017, 02:28 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,790

Rep: Reputation: 1848Reputation: 1848Reputation: 1848Reputation: 1848Reputation: 1848Reputation: 1848Reputation: 1848Reputation: 1848Reputation: 1848Reputation: 1848Reputation: 1848
Quote:
# openssl req -new -nodes -newkey rsa:2048 -keyout edw2.key -out edw2.csr

That worked. I submitted the EDW2.csr file and got back a .cer file. (signed certificate). When I attempted to combine them into a single file (.pfx) like this, I get an error:

# openssl pkcs12 -export -in edw.pem -inkey edw2.key -out edw2.pfx

No certificate matches private key
The above means that the certificate edw.pem was issued using a different key (not the edw2.key).
Perhaps it's just a typo (wrote edw.pem instead of edw2.pem) in the last command used.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Self-signed SSL certificate question kaplan71 Linux - Security 5 07-30-2014 10:30 AM
automate SSL certificate generation jakev383 Linux - Server 4 07-24-2009 09:50 AM
Openssl Certificate Generation Question AES richinsc Linux - Security 11 09-18-2008 11:48 AM
SSL Certificate question watcher69b Linux - Server 1 06-10-2008 10:04 PM
ssl certificate question lenlutz Linux - Networking 1 10-08-2003 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration