<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=PKCS_12</id>
	<title>PKCS 12 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=PKCS_12"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=PKCS_12&amp;action=history"/>
	<updated>2026-07-15T22:08:41Z</updated>
	<subtitle>在这个wiki上该页的修订历史</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=PKCS_12&amp;diff=2958904&amp;oldid=prev</id>
		<title>imported&gt;Just an user98：​/* growthexperiments-addlink-summary-summary:3|0|0 */</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=PKCS_12&amp;diff=2958904&amp;oldid=prev"/>
		<updated>2026-02-24T06:34:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;growthexperiments-addlink-summary-summary:3|0|0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{NoteTA|G1=IT}}&lt;br /&gt;
{{Infobox file format&lt;br /&gt;
|name=PKCS #12&lt;br /&gt;
|extension=&amp;lt;tt&amp;gt;.p12&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;.pfx&amp;lt;/tt&amp;gt;&lt;br /&gt;
|mime=application/x-pkcs12&lt;br /&gt;
|uniform_type=0&lt;br /&gt;
|developer=[[RSA 安全]]&lt;br /&gt;
|type=[[归档文件|归档文件格式]]&lt;br /&gt;
|released={{start date|1996}}&lt;br /&gt;
|latest_release_version=PKCS #12 v1.1&lt;br /&gt;
|latest_release_date={{Start date and age|2012|10|27|df=yes}}&lt;br /&gt;
|container_for=X.509 [[公開金鑰認證]]、X.509 [[公开密钥加密|私鑰]]、X.509 [[证书吊销列表]]、通用資料&lt;br /&gt;
|extended_from=微軟PFX檔案格式&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
在[[密码学]]中，&amp;#039;&amp;#039;&amp;#039;PKCS #12&amp;#039;&amp;#039;&amp;#039; 定义了一种[[归档文件|归档文件格式]]，用于实现存储许多加密对象在一个单独的文件中。通常用它来打包一个私钥及有关的 [[X.509]] 证书，或者打包信任链的全部项目。&amp;lt;ref&amp;gt;{{Cite web |url=http://help.globalscape.com/help/secureserver3/Generating_a_PKCS_12_private_key_public_certificate.htm |title=存档副本 |accessdate=2017-10-21 |archive-date=2017-11-09 |archive-url=https://web.archive.org/web/20171109071742/http://help.globalscape.com/help/secureserver3/generating_a_pkcs_12_private_key_public_certificate.htm |dead-url=no }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
一个 PKCS #12 文件通常是被加密的，同时单独存在。其被称作「安全包裹」的内部存储容器通常同时也被加密及单独存在。一些安全包裹被预先定义用来存储证书，私钥以及[[证书吊销列表]]。根据不同实现者的选择，也可以使用一些安全包裹存储其他任意数据。&lt;br /&gt;
&amp;lt;ref&amp;gt;{{cite web|url=http://www.emc.com/emc-plus/rsa-labs/standards-initiatives/pkcs12-personal-information-exchange-syntax-standard.htm|title=PKCS #12: Personal Information Exchange Syntax Standard|accessdate=2016-02-09|publisher=[[RSA Laboratories]]|quote=This standard specifies a portable format for storing or transporting a user&amp;#039;s private keys, certificates, miscellaneous secrets, etc.|archive-date=2017-04-17|archive-url=https://web.archive.org/web/20170417091802/http://www.emc.com/emc-plus/rsa-labs/standards-initiatives/pkcs12-personal-information-exchange-syntax-standard.htm|dead-url=no}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite web|url=ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-12/pkcs-12v1.pdf|title=PKCS 12 v1.0: Personal Information Exchange Syntax|accessdate=2013-03-14|date=1999-06-24|publisher=[[RSA Laboratories]]}}{{dead link|date=2018年5月 |bot=InternetArchiveBot |fix-attempted=yes }}&lt;br /&gt;
&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
PKCS #12 是 RSA 实验室发布的[[公钥密码学标准]]之中的一员。&lt;br /&gt;
&lt;br /&gt;
PKCS #12 [[文件扩展名]]为 &amp;quot;.p12 &amp;quot;或者 &amp;quot;.pfx&amp;quot;。&amp;lt;ref name=&amp;quot;dotnet&amp;quot;&amp;gt;{{cite web|url=https://msdn.microsoft.com/en-us/library/ms867088.aspx|title=PKCS #12 File Types: Portable Protected Keys in .NET|accessdate=2013-03-14|author=Michel I. Gallant|date=March 2004|publisher=[[Microsoft Corporation]]|quote=All Windows operating systems define the extensions .pfx and .p12 as Personal Information Exchange, or PKCS #12, file types.|archive-date=2013-05-07|archive-url=https://web.archive.org/web/20130507200207/http://msdn.microsoft.com/en-us/library/ms867088.aspx|dead-url=no}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
这些文件可以通过使用 [[OpenSSL]] &amp;lt;code&amp;gt;pkcs12&amp;lt;/code&amp;gt; 命令被创建、解析并读出。&amp;lt;ref name=&amp;quot;openssl&amp;quot;&amp;gt;{{cite web|url=https://www.openssl.org/docs/manmaster/man1/pkcs12.html|title=OpenSSL: Documents, pkcs12(1)|accessdate=2017-03-23|date=2013-01-17|publisher=[[OpenSSL]] Project|quote=The pkcs12 command allows PKCS#12 files (sometimes referred to as PFX files) to be created and parsed.|archive-date=2017-03-24|archive-url=https://web.archive.org/web/20170324174013/https://www.openssl.org/docs/manmaster/man1/pkcs12.html|dead-url=no}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 与PFX文件格式的关系 ==&lt;br /&gt;
PKCS #12 是[[微软]] PFX 文件的替代者；&amp;lt;ref&amp;gt;{{cite web|url=http://static.usenix.org/events/sec02/full_papers/gutmann/gutmann.pdf|title=Lessons Learned in Implementing and Deploying Crypto Software|accessdate=2013-03-14|author=[[Peter Gutmann (computer  scientist)|Peter Gutmann]]|date=August 2002|publisher=[[The USENIX Association]]|quote=In 1996 Microsoft introduced a new storage format [...] called PFX (Personal Information Exchange) [...] it was later re-released in a cleaned-up form as PKCS #12|archive-date=2015-11-23|archive-url=https://web.archive.org/web/20151123192321/http://static.usenix.org/events/sec02/full_papers/gutmann/gutmann.pdf|dead-url=no}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
然而，&amp;quot;PKCS #12 文件&amp;quot; 和 &amp;quot;PFX 文件&amp;quot; 这两个词有时被相互替代使用用。&amp;lt;ref name=&amp;quot;pgut001&amp;quot;&amp;gt;{{cite web|url=http://www.cs.auckland.ac.nz/~pgut001/pubs/pfx.html|title=PFX - How Not to Design a Crypto Protocol/Standard|accessdate=2013-03-14|author=[[Peter Gutmann (computer scientist)|Peter Gutmann]]|date=1998-03-12|archive-date=2012-08-25|archive-url=https://web.archive.org/web/20120825095305/http://www.cs.auckland.ac.nz/~pgut001/pubs/pfx.html|dead-url=no}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
微软的 &amp;quot;PFX&amp;quot; 因作为最复杂的密码学协议之一而受到大量批评。&lt;br /&gt;
&lt;br /&gt;
== 通常用法 ==&lt;br /&gt;
完整的PKCS #12标准非常复杂。它使得大量的复杂对象（例如[[wikipedia:PKCS_12|PKCS #12]]）可以深层次地嵌套。但在实际应用中通常只用来存储一个私钥以及与之有关的证书链。&lt;br /&gt;
&lt;br /&gt;
&amp;amp;#x50;&amp;amp;#x4B;&amp;amp;#x43;&amp;amp;#x53;&amp;amp;#x20;&amp;amp;#x23;&amp;amp;#x31;&amp;amp;#x32;&amp;amp;#x20;&amp;amp;#x6587;&amp;amp;#x4EF6;&amp;amp;#x901A;&amp;amp;#x5E38;&amp;amp;#x4F7F;&amp;amp;#x7528; [[OpenSSL]] 来创建，OpenSSL只支持在命令行界面使用单个私钥。在Java 8之后，可以使用Java密钥工具创建多个条目，但这很有可能不被其他系统所兼容。&lt;br /&gt;
&lt;br /&gt;
对于PKCS #12来说，一个更简单的替代方案是使用 PEM 格式，它仅仅列出证书，可能还有与之有关的私钥，以[[Base32|Base 64]]字符串的形式存储于一个纯[[文本文件]]中。&lt;br /&gt;
&lt;br /&gt;
也可以使用[[GnuTLS]]证书工具（参数 [[to PSK #11]]]来创建包含证书、密钥、CA认证证书的PKCS #12文件。然而，要注意与其他软件的可交换性。如果源是通过Base 64处理过的字符串，则输出也同样应该使用Base 64。 &lt;br /&gt;
&lt;br /&gt;
== 参考文献 ==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
== 外部链接 ==&lt;br /&gt;
* {{Cite web|url=http://www.emc.com/emc-plus/rsa-labs/standards-initiatives/pkcs12-personal-information-exchange-syntax-standard.htm|title=PKCS #12 v1.1: Personal Information Exchange Syntax|publisher=[[RSA Laboratories]]|accessdate=2017-10-21|archive-date=2017-04-17|archive-url=https://web.archive.org/web/20170417091802/http://www.emc.com/emc-plus/rsa-labs/standards-initiatives/pkcs12-personal-information-exchange-syntax-standard.htm|dead-url=no}}&lt;br /&gt;
&lt;br /&gt;
* {{Cite IETF|year=2014|month=July|title=PKCS #12: Personal Information Exchange Syntax v1.1|rfc=7292|publisher=[[Internet Engineering Task Force|IETF]]|editor1-last=Moriarty|editor1-first=K.}}&lt;br /&gt;
&lt;br /&gt;
* Overview about PKCS#12 capabilties, usage, implementations, history and future: {{Cite web|url=https://unmitigatedrisk.com/?p=543|title=The PKCS#12 standard needs another update|author=[https://twitter.com/rmhrisk Ryan Hurst] and [https://twitter.com/yurystrozhevsky Yury Strozhevsky]|date=2015-12-02|publisher=Unmitigated Risk Blog|archiveurl=https://archive.today/20170303104212/https://unmitigatedrisk.com/?p=543|archivedate=2017-03-03|deadurl=yes|accessdate=2017-10-21}}&lt;br /&gt;
&lt;br /&gt;
[[Category:密码学]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Just an user98</name></author>
	</entry>
</feed>