<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="6" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[6]</anchor-end> <dfn><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ASN.1</anchor></dfn> は、<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">データ構造</anchor>の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">記述<title xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">データ形式</title></anchor>に関する仕様です。
多くの <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ISO/IEC</anchor> や <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ITU</anchor> の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">国際規格</anchor>で採用されています。</p><section><h1>符号化規則</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[7]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ASN.1</anchor> は抽象構文なので、実際のファイルやネットワークのデータとしては何らかの具体的な符号化方式により表現する必要があります。
次の方式が規定されています。</p><figure class="short list"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="19" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[19]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ASN.1</anchor> の符号化規則</figcaption><ul><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">BER</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">CER</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">DER</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">PER</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">XER</anchor><ul><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">BASIC-XER</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">CXER</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">EXTENDED-XER</anchor></li></ul></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">OER</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">X.694</anchor></li></ul></figure></section><section><h1>データ型</h1><figure class="short list"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="21" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[21]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ASN.1</anchor> のデータ形式</figcaption><ul><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ASN.1の日時形式</anchor></li></ul></figure></section><section><h1>応用</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[8]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ASN.1</anchor> は次の場面で使われています。<figure class="short list"><ul><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">LDAP</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">証明書</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">CSR</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">PKCS #7</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">PKCS #12</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Netscape Certificate Sequence</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">OCSP</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ISO/IEC 2022</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Fast Infoset</anchor></li></ul></figure></p></section><section><h1>メモ</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end>
<cite>ASN.1 Information Site</cite> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://asn1.elibel.tm.fr/">http://asn1.elibel.tm.fr/</anchor-external>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor>)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end>
<cite>ASN.1 バイナリ変換規則 (BER, CER, DER)</cite> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.geocities.co.jp/SiliconValley-SanJose/3377/">http://www.geocities.co.jp/SiliconValley-SanJose/3377/</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> 1988年版、1997年版があります。</p><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> <cite xml:lang="en">RFC 5280 - Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile</cite>
(<time>2015-02-22 15:44:10 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://tools.ietf.org/html/rfc5280#section-4">http://tools.ietf.org/html/rfc5280#section-4</anchor-external></figcaption><blockquote><p>The ISO/IEC and ITU-T documents use</p><p>the 1997 version of ASN.1; while this document uses the 1988 ASN.1</p><p>syntax, the encoded certificate and standard extensions are</p><p>equivalent.</p></blockquote></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end> <cite xml:lang="en">RFC 5280 - Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile</cite>
(<time>2015-02-22 15:44:10 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://tools.ietf.org/html/rfc5280#appendix-A">http://tools.ietf.org/html/rfc5280#appendix-A</anchor-external></figcaption><blockquote><p>This appendix describes data objects used by conforming PKI</p><p>components in an &quot;ASN.1-like&quot; syntax.  This syntax is a hybrid of the</p><p>1988 and 1993 ASN.1 syntaxes.  The 1988 ASN.1 syntax is augmented</p><p>with 1993 UNIVERSAL Types UniversalString, BMPString, and UTF8String.</p><p>The ASN.1 syntax does not permit the inclusion of type statements in</p><p>the ASN.1 module, and the 1993 ASN.1 standard does not permit use of</p><p>the new UNIVERSAL types in modules using the 1988 syntax.  As a</p><p>result, this module does not conform to either version of the ASN.1</p><p>standard.</p><p>This appendix may be converted into 1988 ASN.1 by replacing the</p><p>definitions for the UNIVERSAL Types with the 1988 catch-all &quot;ANY&quot;.</p></blockquote></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="9" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[9]</anchor-end> <cite xml:lang="en-GB-x-hixie">HTML Standard</cite>
(<time>2015-03-15 01:40:28 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://html.spec.whatwg.org/#the-keygen-element">https://html.spec.whatwg.org/#the-keygen-element</anchor-external></figcaption><blockquote><p>These definitions use the same &quot;ASN.1-like&quot; syntax defined by RFC 5280.</p></blockquote></figure><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="10" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[10]</anchor-end> <cite xml:lang="en">X.680 : Information technology - Abstract Syntax Notation One (ASN.1): Specification of basic notation</cite>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">tsbmail</anchor> 著, <time>2015-04-13 09:11:40 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.itu.int/rec/T-REC-X.680-200811-I/en">http://www.itu.int/rec/T-REC-X.680-200811-I/en</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="11" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[11]</anchor-end> <cite xml:lang="en">ITU-T Study Group 10 - Languages for Telecommunication Systems</cite>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">tsbedh</anchor> 著, <time>2002-09-30 21:33:26 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.itu.int/ITU-T/studygroups/com10/languages/">http://www.itu.int/ITU-T/studygroups/com10/languages/</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="12" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[12]</anchor-end> <cite xml:lang="en">gbarr/perl-Convert-ASN1: encode/decode data using ASN.1 description</cite>
( (<time>2016-05-29 11:54:20 +09:00</time>))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://github.com/gbarr/perl-Convert-ASN1">https://github.com/gbarr/perl-Convert-ASN1</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="13" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[13]</anchor-end> <cite>Convert::ASN1 - search.cpan.org</cite>
( (<time>2016-05-29 11:53:09 +09:00</time>))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://search.cpan.org/~gbarr/Convert-ASN1-0.27/lib/Convert/ASN1.pod">http://search.cpan.org/~gbarr/Convert-ASN1-0.27/lib/Convert/ASN1.pod</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="14" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[14]</anchor-end> <cite>Convert::ASN1 - search.cpan.org</cite>
( (<time>2016-05-29 11:56:35 +09:00</time>))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://search.cpan.org/dist/Convert-ASN1/lib/Convert/ASN1.pod">http://search.cpan.org/dist/Convert-ASN1/lib/Convert/ASN1.pod</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="15" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[15]</anchor-end> <cite>ASN.1 データ生成/解析の事始 — SOUM/misc</cite>
( (<time>2016-04-28 15:38:02 +09:00</time>))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://soum.co.jp/misc/tanino/asn1/index.html">http://soum.co.jp/misc/tanino/asn1/index.html</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="16" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[16]</anchor-end> 
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">JISC</anchor> の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">対応国際規格</anchor>検索で <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ISO 3166</anchor> を調べるとなぜか <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">JISX5007</anchor> (開放型システム間相互接続−オブジェクト識別子の構成) が出てくる。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="17" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[17]</anchor-end> 
<anchor-internal xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="16" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">&gt;&gt;16</anchor-internal> <dfn>JIS X 5007‐1990</dfn> は <dfn>ISO 8824</dfn> の <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MOD</anchor> 規格で、 ISO 3166 (<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">JISX0304</anchor>) は単に引用しているだけらしい。 (JISC の検索で出てくるのはへんだけど。。。)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="18" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[18]</anchor-end> <cite xml:lang="en">Switch to DER-encoded ASN.1 · Issue #47 · WICG/webpackage</cite>
(<time>2017-07-05 16:05:33 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://github.com/WICG/webpackage/issues/47">https://github.com/WICG/webpackage/issues/47</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="20" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[20]</anchor-end> <cite xml:lang="en">gbarr/perl-Convert-ASN1: encode/decode data using ASN.1 description</cite>
(<time>2018-08-11 20:43:30 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://github.com/gbarr/perl-Convert-ASN1">https://github.com/gbarr/perl-Convert-ASN1</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="22" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[22]</anchor-end> <dfn>KS X ISO/IEC 8824-1:2014</dfn>,
<dfn>KS X ISO/IEC 8824-2:2014</dfn>,
<dfn>KS X ISO/IEC 8824-3:2014</dfn>,
<dfn>KS X ISO/IEC 8824-4:2014</dfn>,
<dfn>KS X ISO/IEC 8825-1:2014</dfn>,
<dfn>KS X ISO/IEC 8825-2:2014</dfn>,
<dfn>KS X ISO/IEC 8825-3:2014</dfn>,
<dfn>KS X ISO/IEC 8825-4:2014</dfn></p></section></body></html>