root/doc_inner/gnu_global/S/2781.html

/* [<][>][^][v][top][bottom][index][help] */
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>doc/install_html/Verify.html</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.6.5' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/2921.html'>doc</a>/<a href='../files/2925.html'>install_html</a>/Verify.html</h2>
<em class='comment'>/* [&lt;][&gt;][^][v][top]<a href='#BOTTOM'>[bottom]</a><a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
<hr />
<pre>
<a id='L1' name='L1'></a>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
<a id='L2' name='L2'></a>&lt;html&gt;
<a id='L3' name='L3'></a>&lt;!-- Copyright (C) 2010-2021 j8takagi --&gt;
<a id='L4' name='L4'></a>&lt;!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ --&gt;
<a id='L5' name='L5'></a>&lt;head&gt;
<a id='L6' name='L6'></a>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
<a id='L7' name='L7'></a>&lt;title&gt;Verify (YACASL2のインストール)&lt;/title&gt;
<a id='L8' name='L8'></a>
<a id='L9' name='L9'></a>&lt;meta name="description" content="Verify (YACASL2のインストール)"&gt;
<a id='L10' name='L10'></a>&lt;meta name="keywords" content="Verify (YACASL2のインストール)"&gt;
<a id='L11' name='L11'></a>&lt;meta name="resource-type" content="document"&gt;
<a id='L12' name='L12'></a>&lt;meta name="distribution" content="global"&gt;
<a id='L13' name='L13'></a>&lt;meta name="Generator" content="makeinfo"&gt;
<a id='L14' name='L14'></a>&lt;link href="index.html" rel="start" title="Top"&gt;
<a id='L15' name='L15'></a>&lt;link href="index.html#SEC_Contents" rel="contents" title="Table of Contents"&gt;
<a id='L16' name='L16'></a>&lt;link href="install.html" rel="up" title="install"&gt;
<a id='L17' name='L17'></a>&lt;link href="Expand.html" rel="next" title="Expand"&gt;
<a id='L18' name='L18'></a>&lt;link href="Download.html" rel="prev" title="Download"&gt;
<a id='L19' name='L19'></a>&lt;style type="text/css"&gt;
<a id='L20' name='L20'></a>&lt;!--
<a id='L21' name='L21'></a>a.summary-letter {text-decoration: none}
<a id='L22' name='L22'></a>blockquote.indentedblock {margin-right: 0em}
<a id='L23' name='L23'></a>div.display {margin-left: 3.2em}
<a id='L24' name='L24'></a>div.example {margin-left: 3.2em}
<a id='L25' name='L25'></a>div.lisp {margin-left: 3.2em}
<a id='L26' name='L26'></a>kbd {font-style: oblique}
<a id='L27' name='L27'></a>pre.display {font-family: inherit}
<a id='L28' name='L28'></a>pre.format {font-family: inherit}
<a id='L29' name='L29'></a>pre.menu-comment {font-family: serif}
<a id='L30' name='L30'></a>pre.menu-preformatted {font-family: serif}
<a id='L31' name='L31'></a>span.nolinebreak {white-space: nowrap}
<a id='L32' name='L32'></a>span.roman {font-family: initial; font-weight: normal}
<a id='L33' name='L33'></a>span.sansserif {font-family: sans-serif; font-weight: normal}
<a id='L34' name='L34'></a>ul.no-bullet {list-style: none}
<a id='L35' name='L35'></a>--&gt;
<a id='L36' name='L36'></a>&lt;/style&gt;
<a id='L37' name='L37'></a>&lt;link rel="stylesheet" type="text/css" href="style.css"&gt;
<a id='L38' name='L38'></a>
<a id='L39' name='L39'></a>
<a id='L40' name='L40'></a>&lt;/head&gt;
<a id='L41' name='L41'></a>
<a id='L42' name='L42'></a>&lt;body lang="ja_JP"&gt;
<a id='L43' name='L43'></a>&lt;span id="Verify"&gt;&lt;/span&gt;&lt;div class="header"&gt;
<a id='L44' name='L44'></a>&lt;p&gt;
<a id='L45' name='L45'></a>Next: &lt;a href="Expand.html" accesskey="n" rel="next"&gt;Expand&lt;/a&gt;, Previous: &lt;a href="Download.html" accesskey="p" rel="prev"&gt;Download&lt;/a&gt;, Up: &lt;a href="install.html" accesskey="u" rel="up"&gt;install&lt;/a&gt; &amp;nbsp; [&lt;a href="index.html#SEC_Contents" title="Table of contents" rel="contents"&gt;Contents&lt;/a&gt;]&lt;/p&gt;
<a id='L46' name='L46'></a>&lt;/div&gt;
<a id='L47' name='L47'></a>&lt;hr&gt;
<a id='L48' name='L48'></a>&lt;span id="YACASL2huairunoJian-Zheng-"&gt;&lt;/span&gt;&lt;h3 class="section"&gt;2.2 YACASL2ファイルの検証&lt;/h3&gt;
<a id='L49' name='L49'></a>
<a id='L50' name='L50'></a>&lt;p&gt;ダウンロードが完了したら、圧縮ファイルが改竄されていないか検証します。検証には、GnuPG分離署名か、MD5ハッシュ値を使います。
<a id='L51' name='L51'></a>&lt;/p&gt;
<a id='L52' name='L52'></a>&lt;span id="GnuPGFen-Li-Shu-Ming-denoJian-Zheng-"&gt;&lt;/span&gt;&lt;h4 class="subsection"&gt;2.2.1 GnuPG分離署名での検証&lt;/h4&gt;
<a id='L53' name='L53'></a>
<a id='L54' name='L54'></a>&lt;p&gt;GnuPGの&lt;code&gt;gpg&lt;/code&gt;で圧縮ファイルを検証します。この検証を行うには、GnuPGがインストールされ、自分の秘密鍵と公開鍵のペアが作成されている必要があります。
<a id='L55' name='L55'></a>&lt;/p&gt;
<a id='L56' name='L56'></a>&lt;div class="example"&gt;
<a id='L57' name='L57'></a>&lt;pre class="example"&gt;$ &lt;kbd&gt;gpg --verify yacasl2.tar.xz.asc&lt;/kbd&gt;
<a id='L58' name='L58'></a>gpg: Signature made Sat Oct 27 02:17:16 2012 JST using RSA key ID 25B62DD1
<a id='L59' name='L59'></a>gpg: Can't check signature: public key not found
<a id='L60' name='L60'></a>$ &lt;kbd&gt;gpg --recv-keys 25B62DD1&lt;/kbd&gt;
<a id='L61' name='L61'></a>gpg: requesting key 25B62DD1 from hkp server keys.gnupg.net
<a id='L62' name='L62'></a>gpg: key 25B62DD1: public key &amp;quot;j8takagi &amp;lt;j8takagi@nifty.com&amp;gt;&amp;quot; imported
<a id='L63' name='L63'></a>gpg: Total number processed: 1
<a id='L64' name='L64'></a>gpg:               imported: 1  (RSA: 1)
<a id='L65' name='L65'></a>
<a id='L66' name='L66'></a>$ &lt;kbd&gt;gpg --lsign-key 25B62DD1&lt;/kbd&gt;
<a id='L67' name='L67'></a>
<a id='L68' name='L68'></a>pub  2048R/25B62DD1  created: 2012-09-29  expires: never       usage: SC
<a id='L69' name='L69'></a>                     trust: unknown       validity: full
<a id='L70' name='L70'></a>sub  2048R/92E25C29  created: 2012-09-29  expires: never       usage: E
<a id='L71' name='L71'></a>[  full  ] (1). j8takagi &amp;lt;j8takagi@nifty.com&amp;gt;
<a id='L72' name='L72'></a>
<a id='L73' name='L73'></a>
<a id='L74' name='L74'></a>pub  2048R/25B62DD1  created: 2012-09-29  expires: never       usage: SC
<a id='L75' name='L75'></a>                     trust: unknown       validity: full
<a id='L76' name='L76'></a> Primary key fingerprint: ...
<a id='L77' name='L77'></a> 
<a id='L78' name='L78'></a>     .* &amp;lt;.*@.*&amp;gt;
<a id='L79' name='L79'></a>
<a id='L80' name='L80'></a>Are you sure that you want to sign this key with your
<a id='L81' name='L81'></a>key &amp;quot;.* &amp;lt;.*@.*&amp;gt;&amp;quot;
<a id='L82' name='L82'></a>
<a id='L83' name='L83'></a>The signature will be marked as non-exportable.
<a id='L84' name='L84'></a>
<a id='L85' name='L85'></a>Really sign? (y/N) &lt;kbd&gt;y&lt;/kbd&gt;
<a id='L86' name='L86'></a>
<a id='L87' name='L87'></a>You need a passphrase to unlock the secret key for
<a id='L88' name='L88'></a>user: &amp;quot;.* &amp;lt;.*@.*&amp;gt;&amp;quot;
<a id='L89' name='L89'></a>2048-bit RSA key, ID ........, created 20..-..-..
<a id='L90' name='L90'></a>
<a id='L91' name='L91'></a>&amp;lt;input password&amp;gt; &lt;kbd&gt;password&lt;/kbd&gt;
<a id='L92' name='L92'></a>
<a id='L93' name='L93'></a>$ &lt;kbd&gt;gpg --verify yacasl2.tar.xz.asc&lt;/kbd&gt;
<a id='L94' name='L94'></a>gpg: Signature made Sat Oct 27 02:17:16 2012 JST using RSA key ID 25B62DD1
<a id='L95' name='L95'></a>gpg: checking the trustdb
<a id='L96' name='L96'></a>gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
<a id='L97' name='L97'></a>gpg: depth: 0  valid:   1  signed:   4  trust: 0-, 0q, 0n, 0m, 0f, 1u
<a id='L98' name='L98'></a>gpg: depth: 1  valid:   4  signed:   0  trust: 4-, 0q, 0n, 0m, 0f, 0u
<a id='L99' name='L99'></a>gpg: Good signature from &amp;quot;j8takagi &amp;lt;j8takagi@nifty.com&amp;gt;&amp;quot;
<a id='L100' name='L100'></a>&lt;/pre&gt;&lt;/div&gt;
<a id='L101' name='L101'></a>
<a id='L102' name='L102'></a>&lt;span id="MD5hatusiyuZhi-denoJian-Zheng-"&gt;&lt;/span&gt;&lt;h4 class="subsection"&gt;2.2.2 MD5ハッシュ値での検証&lt;/h4&gt;
<a id='L103' name='L103'></a>
<a id='L104' name='L104'></a>&lt;p&gt;&lt;code&gt;openssl&lt;/code&gt;と&lt;code&gt;diff&lt;/code&gt;で圧縮ファイルを検証します。
<a id='L105' name='L105'></a>&lt;/p&gt;
<a id='L106' name='L106'></a>&lt;div class="example"&gt;
<a id='L107' name='L107'></a>&lt;pre class="example"&gt;$ &lt;kbd&gt;openssl md5 yacasl2.tar.gz | diff -s yacasl2.tar.gz.md5sum -&lt;/kbd&gt;
<a id='L108' name='L108'></a>Files yacasl2.tar.gz.md5sum and - are identical
<a id='L109' name='L109'></a>&lt;/pre&gt;&lt;/div&gt;
<a id='L110' name='L110'></a>
<a id='L111' name='L111'></a>
<a id='L112' name='L112'></a>
<a id='L113' name='L113'></a>
<a id='L114' name='L114'></a>&lt;/body&gt;
<a id='L115' name='L115'></a>&lt;/html&gt;
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* [&lt;][&gt;][^][v]<a href='#TOP'>[top]</a>[bottom]<a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
</body>
</html>

/* [<][>][^][v][top][bottom][index][help] */