<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>OpenSSL on 技術浮浪貢</title><link>https://blog.plk.tw/tags/openssl/</link><description>Recent content in OpenSSL on 技術浮浪貢</description><generator>Hugo</generator><language>zh-tw</language><lastBuildDate>Mon, 18 Sep 2023 03:03:58 +0800</lastBuildDate><atom:link href="https://blog.plk.tw/tags/openssl/index.xml" rel="self" type="application/rss+xml"/><item><title>用 OpenSSL 產生金鑰對</title><link>https://blog.plk.tw/posts/2023/09/generate-key-pair-using-openssl/</link><pubDate>Mon, 18 Sep 2023 03:03:58 +0800</pubDate><guid>https://blog.plk.tw/posts/2023/09/generate-key-pair-using-openssl/</guid><description>&lt;p&gt;手上的專案用 RSA256 做為 JWT 的簽章驗證方式，需要針對不同環境產生不同的金鑰對（key pair）。撰寫文件時發現網路上找到的方法通常都是用 &lt;code&gt;ssh-keygen(1)&lt;/code&gt; 搭配 &lt;code&gt;openssl(1)&lt;/code&gt;，但其實光用 &lt;code&gt;openssl(1)&lt;/code&gt; 就足以產生 private key 與 public key。&lt;/p&gt;</description></item></channel></rss>