69 lines
4.8 KiB
HTML
69 lines
4.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<title>Criptoparty/PGP</title>
|
|
<link rel="stylesheet" type="text/css" media="all" charset="utf-8" href="acaro/css/common.css">
|
|
<link rel="stylesheet" type="text/css" media="screen" charset="utf-8" href="acaro/css/screen.css">
|
|
<link rel="stylesheet" type="text/css" media="print" charset="utf-8" href="acaro/css/print.css">
|
|
<style type="text/css">
|
|
ul.pagetitle{
|
|
display: inline;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 1.5em;
|
|
}
|
|
li.pagetitle{
|
|
display: inline;
|
|
margin: 0;
|
|
}
|
|
td.noborder {
|
|
border: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<table>
|
|
<tr>
|
|
<td class="noborder">
|
|
<img src="logo.png" width="85" height="85">
|
|
</td>
|
|
<td class="noborder">
|
|
<ul class="pagetitle">
|
|
<li class="pagetitle"><a class="backlink">Criptoparty/PGP</a>
|
|
</ul>
|
|
<br><br>
|
|
[<a href="FrontPage.html">FrontPage</a>]
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<hr>
|
|
<div id="page">
|
|
<div dir="ltr" id="content" lang="en"><span class="anchor" id="top"></span>
|
|
<span class="anchor" id="line-1-8"></span><p class="line867">
|
|
<h1 id="PGP">PGP</h1>
|
|
<span class="anchor" id="line-2"></span><p class="line874">Pretty Good Privacy, il software di crittografia asimmetrica inventato da Philip Zimmermann <span class="anchor" id="line-3"></span><span class="anchor" id="line-4"></span><p class="line867">
|
|
<h1 id="GNUPG">GNUPG</h1>
|
|
<span class="anchor" id="line-5"></span><p class="line874">il suo equivalente libero <span class="anchor" id="line-6"></span><span class="anchor" id="line-7"></span><p class="line867">
|
|
<h2 id="Creare_una_chiave">Creare una chiave</h2>
|
|
<span class="anchor" id="line-8"></span><p class="line874">premesso che si usa la linea comando, siamo anche più comodi in ambiente GNU/Linux <span class="anchor" id="line-9"></span><span class="anchor" id="line-10"></span><p class="line867"><span class="anchor" id="line-11"></span><span class="anchor" id="line-12"></span><pre><span class="anchor" id="line-1"></span>gpg --gen-key</pre><span class="anchor" id="line-13"></span><p class="line867">
|
|
<h3 id="Creare_un_certificato_di_revoca">Creare un certificato di revoca</h3>
|
|
<span class="anchor" id="line-14"></span><p class="line867"><span class="anchor" id="line-15"></span><span class="anchor" id="line-16"></span><pre><span class="anchor" id="line-1-1"></span>gpg -o certificato.di.revoca.Key-ID.asc --gen-revoke Key-ID</pre><span class="anchor" id="line-17"></span><p class="line867">
|
|
<h3 id="Esportare_la_chiave_pubblica">Esportare la chiave pubblica</h3>
|
|
<span class="anchor" id="line-18"></span><p class="line867"><span class="anchor" id="line-19"></span><span class="anchor" id="line-20"></span><pre><span class="anchor" id="line-1-2"></span>gpg -a -o mia.chiave.pubblica.txt --export Key-ID</pre><span class="anchor" id="line-21"></span><p class="line867">
|
|
<h3 id="Importare_una_chiave">Importare una chiave</h3>
|
|
<span class="anchor" id="line-22"></span><p class="line867"><span class="anchor" id="line-23"></span><span class="anchor" id="line-24"></span><pre><span class="anchor" id="line-1-3"></span>gpg --import file.chiave.asc</pre><span class="anchor" id="line-25"></span><p class="line867">
|
|
<h3 id="Verifica_la_fingerprint_di_qualcuno">Verifica la fingerprint di qualcuno</h3>
|
|
<span class="anchor" id="line-26"></span><p class="line867"><span class="anchor" id="line-27"></span><span class="anchor" id="line-28"></span><pre><span class="anchor" id="line-1-4"></span>gpg --fingerprint qualcuno</pre><span class="anchor" id="line-29"></span><p class="line874">(Poi lo chiamo al telefono e verifico con lui che sia la stessa) <span class="anchor" id="line-30"></span><span class="anchor" id="line-31"></span><p class="line867">
|
|
<h3 id="Firmare_una_chiave">Firmare una chiave</h3>
|
|
<span class="anchor" id="line-32"></span><p class="line867"><span class="anchor" id="line-33"></span><span class="anchor" id="line-34"></span><pre><span class="anchor" id="line-1-5"></span>gpg --sign-key Key-ID</pre><span class="anchor" id="line-35"></span><p class="line867">
|
|
<h3 id="Cifrare_un_documento_per_Snowden">Cifrare un documento per Snowden</h3>
|
|
<span class="anchor" id="line-36"></span><p class="line867"><span class="anchor" id="line-37"></span><span class="anchor" id="line-38"></span><pre><span class="anchor" id="line-1-6"></span>gpg -a --output messaggio.asc --encrypt --recipient Snowden messaggio.txt</pre><span class="anchor" id="line-39"></span><p class="line867">
|
|
<h3 id="Decifrare_un_documento">Decifrare un documento</h3>
|
|
<span class="anchor" id="line-40"></span><p class="line867"><span class="anchor" id="line-41"></span><span class="anchor" id="line-42"></span><pre><span class="anchor" id="line-1-7"></span>gpg -o messaggio.in.chiaro.txt messaggio.asc</pre><span class="anchor" id="line-43"></span><span class="anchor" id="bottom"></span></div>
|
|
</div>
|
|
<hr>
|
|
2024-11-06 23:21
|
|
</body>
|
|
</html>
|