root/doc/install_html/Verify.html

/* [<][>][^][v][top][bottom][index][help] */
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Copyright (C) 2010-2023 j8takagi -->
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Verify (YACASL2のインストール)</title>

<meta name="description" content="Verify (YACASL2のインストール)">
<meta name="keywords" content="Verify (YACASL2のインストール)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<link href="index.html" rel="start" title="Top">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="install.html" rel="up" title="install">
<link href="Expand.html" rel="next" title="Expand">
<link href="Download.html" rel="prev" title="Download">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>
<link rel="stylesheet" type="text/css" href="style.css">


</head>

<body lang="ja_JP">
<span id="Verify"></span><div class="header">
<p>
Next: <a href="Expand.html" accesskey="n" rel="next">Expand</a>, Previous: <a href="Download.html" accesskey="p" rel="prev">Download</a>, Up: <a href="install.html" accesskey="u" rel="up">install</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
<hr>
<span id="YACASL2huairunoJian-Zheng-"></span><h3 class="section">2.2 YACASL2ファイルの検証</h3>

<p>ダウンロードが完了したら、圧縮ファイルが改竄されていないか検証します。検証には、GnuPG分離署名か、MD5ハッシュ値を使います。
</p>
<span id="GnuPGFen-Li-Shu-Ming-denoJian-Zheng-"></span><h4 class="subsection">2.2.1 GnuPG分離署名での検証</h4>

<p>GnuPGの<code>gpg</code>で圧縮ファイルを検証します。この検証を行うには、GnuPGがインストールされ、自分の秘密鍵と公開鍵のペアが作成されている必要があります。
</p>
<div class="example">
<pre class="example">$ <kbd>gpg --verify yacasl2.tar.xz.asc</kbd>
gpg: Signature made Sat Oct 27 02:17:16 2012 JST using RSA key ID 25B62DD1
gpg: Can't check signature: public key not found
$ <kbd>gpg --recv-keys 25B62DD1</kbd>
gpg: requesting key 25B62DD1 from hkp server keys.gnupg.net
gpg: key 25B62DD1: public key &quot;j8takagi &lt;j8takagi@nifty.com&gt;&quot; imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)

$ <kbd>gpg --lsign-key 25B62DD1</kbd>

pub  2048R/25B62DD1  created: 2012-09-29  expires: never       usage: SC
                     trust: unknown       validity: full
sub  2048R/92E25C29  created: 2012-09-29  expires: never       usage: E
[  full  ] (1). j8takagi &lt;j8takagi@nifty.com&gt;


pub  2048R/25B62DD1  created: 2012-09-29  expires: never       usage: SC
                     trust: unknown       validity: full
 Primary key fingerprint: ...
 
     .* &lt;.*@.*&gt;

Are you sure that you want to sign this key with your
key &quot;.* &lt;.*@.*&gt;&quot;

The signature will be marked as non-exportable.

Really sign? (y/N) <kbd>y</kbd>

You need a passphrase to unlock the secret key for
user: &quot;.* &lt;.*@.*&gt;&quot;
2048-bit RSA key, ID ........, created 20..-..-..

&lt;input password&gt; <kbd>password</kbd>

$ <kbd>gpg --verify yacasl2.tar.xz.asc</kbd>
gpg: Signature made Sat Oct 27 02:17:16 2012 JST using RSA key ID 25B62DD1
gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   4  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:   4  signed:   0  trust: 4-, 0q, 0n, 0m, 0f, 0u
gpg: Good signature from &quot;j8takagi &lt;j8takagi@nifty.com&gt;&quot;
</pre></div>

<span id="MD5hatusiyuZhi-denoJian-Zheng-"></span><h4 class="subsection">2.2.2 MD5ハッシュ値での検証</h4>

<p><code>openssl</code>と<code>diff</code>で圧縮ファイルを検証します。
</p>
<div class="example">
<pre class="example">$ <kbd>openssl md5 yacasl2.tar.gz | diff -s yacasl2.tar.gz.md5sum -</kbd>
Files yacasl2.tar.gz.md5sum and - are identical
</pre></div>




</body>
</html>

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