<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Openssl on kamuszhou&#39;s blog</title>
    <link>https://ykyi.net/tags/openssl/</link>
    <description>Recent content in Openssl on kamuszhou&#39;s blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Wed, 20 Jun 2018 07:03:11 +0000</lastBuildDate>
    <atom:link href="https://ykyi.net/tags/openssl/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>openssl签发证书肘后备急方（cheatsheet）</title>
      <link>https://ykyi.net/?p=1446/</link>
      <pubDate>Wed, 20 Jun 2018 07:03:11 +0000</pubDate>
      <guid>https://ykyi.net/?p=1446/</guid>
      <description>&lt;h3 id=&#34;生成一对新的rsa非对称密钥2048bits长-generate-an-rsa-private-key&#34;&gt;生成一对新的RSA非对称密钥,2048bits长。 generate an RSA private key&lt;/h3&gt;
&lt;p&gt;openssl genrsa -out private.key 2048&lt;/p&gt;
&lt;h3 id=&#34;从私钥中提出公钥-extract-the-public-key&#34;&gt;从私钥中提出公钥。 extract the public key&lt;/h3&gt;
&lt;p&gt;openssl rsa -in mykey.pem -pubout &amp;gt; my_pubkey.pub&lt;/p&gt;
&lt;h3 id=&#34;创建自签名证书create-a-self-singned-certificate&#34;&gt;创建自签名证书。create a self-singned certificate&lt;/h3&gt;
&lt;p&gt;openssl req -config openssl.conf -x509 -sha256 -days 3650 -newkey rsa:4096 -keyout ca.key -out ca.crt&lt;/p&gt;
&lt;h3 id=&#34;签署csrsign-the-csr&#34;&gt;签署CSR。sign the CSR&lt;/h3&gt;
&lt;p&gt;openssl ca -config openssl.conf -days 375 -notext -in test.csr -out test.crt&lt;/p&gt;
&lt;h3 id=&#34;检验签书verify-the-certificate&#34;&gt;检验签书。verify the certificate&lt;/h3&gt;
&lt;p&gt;openssl verify -CAfile ca.crt test.crt&lt;/p&gt;
&lt;h3 id=&#34;生成一个csrgenerate-a-new-private-key-and-csrcertificate-signing-request&#34;&gt;生成一个CSR。Generate a new private key and CSR(Certificate Signing Request)&lt;/h3&gt;
&lt;p&gt;openssl req -config openssl.conf -out CSR.csr -nodes -new -newkey rsa:2048 -nodes -keyout private.key&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
