<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>X.509  |  takeHo（たけほ）のへなちょこ台帳</title>
	<atom:link href="https://blog.takeho.com/tag/x-509/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.takeho.com</link>
	<description>いわゆる自由帳ってところです。</description>
	<lastBuildDate>Tue, 09 Dec 2025 01:18:09 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6</generator>

<image>
	<url>https://blog.takeho.com/wp-content/uploads/2024/08/icon-150x150.png</url>
	<title>X.509  |  takeHo（たけほ）のへなちょこ台帳</title>
	<link>https://blog.takeho.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>OpenSSLでPFX形式の証明書からPEM形式の証明書と秘密鍵を取り出す</title>
		<link>https://blog.takeho.com/wpjxmuzkea69sael8kkjujv1ll3112ex/</link>
					<comments>https://blog.takeho.com/wpjxmuzkea69sael8kkjujv1ll3112ex/#respond</comments>
		
		<dc:creator><![CDATA[たけほ]]></dc:creator>
		<pubDate>Thu, 18 Jul 2024 09:34:07 +0000</pubDate>
				<category><![CDATA[コラム]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[PKCS]]></category>
		<category><![CDATA[X.509]]></category>
		<guid isPermaLink="false">https://blog.takeho.com/?p=55</guid>

					<description><![CDATA[IISから取得した証明書はPFX形式の為そのままではLinux環境で使用できません。 この記事ではPFX形式の証明書から証明書と秘密鍵を取り出す方法を説明します。 秘密鍵を取り出す 取り出す秘密鍵を暗号化する必要がなけれ [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>IISから取得した証明書はPFX形式の為そのままではLinux環境で使用できません。</p>



<p>この記事ではPFX形式の証明書から証明書と秘密鍵を取り出す方法を説明します。</p>



<h3 class="wp-block-heading"><span id="toc1">秘密鍵を取り出す</span></h3>



<pre class="wp-block-code"><code># openssl pkcs12 -in &lt;PFXファイル> -nocerts -out &lt;出力する秘密鍵名></code></pre>



<p>取り出す秘密鍵を暗号化する必要がなければ次のように「-nodes」を付けます。</p>



<pre class="wp-block-code"><code># openssl pkcs12 -in &lt;PFXファイル> -nocerts -nodes -out &lt;出力する秘密鍵名></code></pre>



<div class="wp-block-cocoon-blocks-tab-caption-box-1 tab-caption-box block-box not-nested-style cocoon-block-tab-caption-box"><div class="tab-caption-box-label block-box-label box-label"><span class="tab-caption-box-label-text block-box-label-text box-label-text">注意</span></div><div class="tab-caption-box-content block-box-content box-content">
<p>PFX形式のファイルにパスワード設定がされている場合、秘密鍵を取り出す時にパスワードの入力が求められます。</p>
</div></div>



<h3 class="wp-block-heading"><span id="toc2">サーバ証明書を取り出す</span></h3>



<pre class="wp-block-code"><code># openssl pkcs12 -in &lt;PFXファイル> -clcerts -nokeys -out &lt;出力する証明書名></code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.takeho.com/wpjxmuzkea69sael8kkjujv1ll3112ex/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
