(open)SSL: habe ich den passenden private key zu einem Certificate Signing Request (CSR)? by schlafhacking

View this thread on steempeak.com
· @schlafhacking ·
$0.99
(open)SSL: habe ich den passenden private key zu einem Certificate Signing Request (CSR)?
Für Kunden und Projekte habe ich immer wieder mit SSL und Zertifikaten zu tun.
Heute steht wieder banale aber wichtige Frage an: habe ich den passenden private key zu einem Certificate Signing Request (CSR), der noch beim Zertifikat-Lieferant voreingestellt ist?
Damit ich mir die Befehle endlich merken kann, notiere ich sie hier. Und vielleicht stellt sich ja jemand anders auch mal die Frage und die Notizen nützen.

### Gegeben ist
- ein private key im PEM Format in Datei meinkey.key
- ein CSR vom Zertifikat-Reseller in Datei psw-csr.pem

### Lösung: lassen sich sowohl aus dem CSR als auch dem pivate key der gleiche pubkey ableiten, muss der private key zum CSR passen.
In openssl cmdlines heißt das
1. pubkey from CSR
openssl req -in psw-csr.pem -noout -pubkey > pub1.pem
1. pubkey from private key pem
openssl rsa -in meinkey.key -pubout > pub2.pem
1. beide Outputs vergleichen
sha256sum pub*

Beide Dateien stimmen exakt überein -> ich kann also den alten CSR getrost verwenden und noch eine Tasse Kaffee trinken.

![sslartikel.jpg](https://files.steempeak.com/file/steempeak/schlafhacking/KNCijQvd-ssl-artikel.jpg)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
👎  ,
properties (23)
post_id80,909,509
authorschlafhacking
permlinkopen-ssl-habe-ich-den-passenden-private-key-zu-einem-certificate-signing-request-csr
categorydeutsch
json_metadata{"app":"steempeak\/1.18.0","format":"markdown","tags":["deutsch","webhosting","ssl","zertifikat","palnet"],"image":["https:\/\/files.steempeak.com\/file\/steempeak\/schlafhacking\/KNCijQvd-ssl-artikel.jpg"]}
created2019-10-15 16:20:54
last_update2019-10-15 16:20:54
depth0
children4
net_rshares4,347,171,052,282
last_payout2019-10-22 16:20:54
cashout_time1969-12-31 23:59:59
total_payout_value0.508 SBD
curator_payout_value0.485 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,126
author_reputation4,641,588,833,612
root_title"(open)SSL: habe ich den passenden private key zu einem Certificate Signing Request (CSR)?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (35)
@kadna ·
!COFFEEA
👍  
properties (23)
post_id80,913,686
authorkadna
permlinkpzfkdk
categorydeutsch
json_metadata{"app":"steemit\/0.1"}
created2019-10-15 19:20:12
last_update2019-10-15 19:20:12
depth1
children1
net_rshares879,700,406
last_payout2019-10-22 19:20:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length8
author_reputation81,491,274,690,207
root_title"(open)SSL: habe ich den passenden private key zu einem Certificate Signing Request (CSR)?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@schlafhacking ·
0xdecafbad?
0xbadcaffe?

Posted using [Partiko iOS](https://partiko.app/referral/schlafhacking)
properties (22)
post_id80,913,707
authorschlafhacking
permlinkschlafhacking-re-kadna-pzfkdk-20191015t192118001z
categorydeutsch
json_metadata{"app":"partiko","client":"ios"}
created2019-10-15 19:21:18
last_update2019-10-15 19:21:18
depth2
children0
net_rshares0
last_payout2019-10-22 19:21:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length95
author_reputation4,641,588,833,612
root_title"(open)SSL: habe ich den passenden private key zu einem Certificate Signing Request (CSR)?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@coffeea.token ·
$0.03
[![coffeea](http://c0ff33a.uk/coffeea.jpg)](http://bit.ly/2YbNaET)  Lucky you @schlafhacking here is your COFFEEA, view all your tokens at [steem-engine.com](https://steem-engine.com/) [Vote for c0ff33a as Witness](http://bit.ly/2YbNaET)
👍  
properties (23)
post_id80,913,691
authorcoffeea.token
permlinkre-open-ssl-habe-ich-den-passenden-private-key-zu-einem-certificate-signing-request-csr-20191015t192024z
categorydeutsch
json_metadata{"app":"beem\/0.21.1"}
created2019-10-15 19:20:24
last_update2019-10-15 19:20:24
depth1
children0
net_rshares293,334,703,988
last_payout2019-10-22 19:20:24
cashout_time1969-12-31 23:59:59
total_payout_value0.026 SBD
curator_payout_value0.005 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length237
author_reputation4,478,278,630,502
root_title"(open)SSL: habe ich den passenden private key zu einem Certificate Signing Request (CSR)?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@verifyme ·
@schlafhacking You have received a 100% upvote from @steemguardian because this post did not use any bidbots and you have not used bidbots in the last 30 days!

Upvoting this comment will help keep this service running.
properties (22)
post_id80,947,234
authorverifyme
permlinkre-open-ssl-habe-ich-den-passenden-private-key-zu-einem-certificate-signing-request-csr-schlafhacking-verifyme-randomvote
categorydeutsch
json_metadata{"tags":["verifyme","random-upvote"],"users":["schlafhacking","steemguardian"],"app":"null\/null","format":"markdown"}
created2019-10-17 00:25:39
last_update2019-10-17 00:25:39
depth1
children0
net_rshares0
last_payout2019-10-24 00:25:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length221
author_reputation-704,332,579,924
root_title"(open)SSL: habe ich den passenden private key zu einem Certificate Signing Request (CSR)?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000