<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takuya_1st</author_name>
  <author_url>https://blog.hatena.ne.jp/takuya_1st/</author_url>
  <blog_title>それマグで！</blog_title>
  <blog_url>https://takuya-1st.hatenablog.jp/</blog_url>
  <categories>
    <anon>openssl</anon>
    <anon>セキュリティ</anon>
  </categories>
  <description>openssl コマンドで秘密鍵・証明書の公開鍵一致を調べる 秘密鍵と証明書（公開鍵）のペアの枚数が増えてきて、どれが有効な秘密鍵かわからなくなった。 SSL証明書・署名リクエスト・秘密鍵から、modulusを取り出し、ハッシュ値の一致を調べれば、keyとCertの一致を調べられる。 Modulus とは、秘密鍵と公開鍵の積です。 公開鍵と秘密鍵の積（詳しくはRSA暗号を知る） bashスクリプトで RSA 鍵と x509証明書が正しいペアになっているかチェックする CERT=../certs/example.com/fullchain.pem PKEY=../certs/example.co…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2022%2F03%2F31%2F142450&quot; title=&quot; openssl コマンドで証明書・秘密鍵・証明書リクエストのペアの一致を調べる。 - それマグで！&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-03-31 14:24:50</published>
  <title> openssl コマンドで証明書・秘密鍵・証明書リクエストのペアの一致を調べる。</title>
  <type>rich</type>
  <url>https://takuya-1st.hatenablog.jp/entry/2022/03/31/142450</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
