2 <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
3 <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
6 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge">
7 <meta name=
"viewport" content=
"width=device-width, initial-scale=1.0">
10 <link rel=
"shortcut icon" href=
"../img/favicon.ico">
11 <title>GnuPG signature - Shaarli Documentation
</title>
12 <link href='https://fonts.googleapis.com/css?family=Lato:
400,
700|Roboto+Slab:
400,
700|Inconsolata:
400,
700' rel='stylesheet' type='text/css'
>
14 <link rel=
"stylesheet" href=
"../css/theme.css" type=
"text/css" />
15 <link rel=
"stylesheet" href=
"../css/theme_extra.css" type=
"text/css" />
16 <link rel=
"stylesheet" href=
"../css/highlight.css">
17 <link href=
"../github-markdown.css" rel=
"stylesheet">
21 var mkdocs_page_name = "GnuPG signature";
22 var mkdocs_page_input_path = "GnuPG-signature.md";
23 var mkdocs_page_url = "/GnuPG-signature/";
26 <script src=
"../js/jquery-2.1.1.min.js"></script>
27 <script src=
"../js/modernizr-2.8.3.min.js"></script>
28 <script type=
"text/javascript" src=
"../js/highlight.pack.js"></script>
32 <body class=
"wy-body-for-nav" role=
"document">
34 <div class=
"wy-grid-for-nav">
37 <nav data-toggle=
"wy-nav-shift" class=
"wy-nav-side stickynav">
38 <div class=
"wy-side-nav-search">
39 <a href=
".." class=
"icon icon-home"> Shaarli Documentation
</a>
41 <form id =
"rtd-search-form" class=
"wy-form" action=
"../search.html" method=
"get">
42 <input type=
"text" name=
"q" placeholder=
"Search docs" />
47 <div class=
"wy-menu wy-menu-vertical" data-spy=
"affix" role=
"navigation" aria-label=
"main navigation">
51 <li class=
"toctree-l1">
53 <a class=
"" href=
"..">Home
</a>
56 <li class=
"toctree-l1">
58 <span class=
"caption-text">Setup
</span>
62 <a class=
"" href=
"../Download-and-Installation/">Download and Installation
</a>
66 <a class=
"" href=
"../Upgrade-and-migration/">Upgrade and migration
</a>
70 <a class=
"" href=
"../Server-requirements/">Server requirements
</a>
74 <a class=
"" href=
"../Server-configuration/">Server configuration
</a>
78 <a class=
"" href=
"../Server-security/">Server security
</a>
82 <a class=
"" href=
"../Shaarli-configuration/">Shaarli configuration
</a>
86 <a class=
"" href=
"../Plugins/">Plugins
</a>
91 <li class=
"toctree-l1">
93 <span class=
"caption-text">Docker
</span>
97 <a class=
"" href=
"../Docker-101/">Docker
101</a>
101 <a class=
"" href=
"../Shaarli-images/">Shaarli images
</a>
105 <a class=
"" href=
"../Reverse-proxy-configuration/">Reverse proxy configuration
</a>
109 <a class=
"" href=
"../Docker-resources/">Docker resources
</a>
114 <li class=
"toctree-l1">
116 <span class=
"caption-text">Usage
</span>
120 <a class=
"" href=
"../Features/">Features
</a>
124 <a class=
"" href=
"../Bookmarklet/">Bookmarklet
</a>
128 <a class=
"" href=
"../Browsing-and-searching/">Browsing and searching
</a>
132 <a class=
"" href=
"../Firefox-share/">Firefox share
</a>
136 <a class=
"" href=
"../RSS-feeds/">RSS feeds
</a>
140 <a class=
"" href=
"../REST-API/">REST API
</a>
145 <li class=
"toctree-l1">
147 <span class=
"caption-text">How To
</span>
151 <a class=
"" href=
"../Backup,-restore,-import-and-export/">Backup, restore, import and export
</a>
155 <a class=
"" href=
"../Various-hacks/">Various hacks
</a>
160 <li class=
"toctree-l1">
162 <a class=
"" href=
"../Troubleshooting/">Troubleshooting
</a>
165 <li class=
"toctree-l1">
167 <span class=
"caption-text">Development
</span>
171 <a class=
"" href=
"../Development-guidelines/">Development guidelines
</a>
175 <a class=
"" href=
"../Continuous-integration-tools/">Continuous integration tools
</a>
177 <li class=
" current">
179 <a class=
"current" href=
"./">GnuPG signature
</a>
182 <li class=
"toctree-l3"><a href=
"#introduction">Introduction
</a></li>
186 <li><a class=
"toctree-l4" href=
"#pgp-and-gpg">PGP and GPG
</a></li>
188 <li><a class=
"toctree-l4" href=
"#trust">Trust
</a></li>
193 <li class=
"toctree-l3"><a href=
"#generate-a-gpg-key">Generate a GPG key
</a></li>
197 <li><a class=
"toctree-l4" href=
"#gpg-provide-identity-information">gpg - provide identity information
</a></li>
199 <li><a class=
"toctree-l4" href=
"#gpg-entropy-interlude">gpg - entropy interlude
</a></li>
201 <li><a class=
"toctree-l4" href=
"#gpg-key-creation-confirmation">gpg - key creation confirmation
</a></li>
203 <li><a class=
"toctree-l4" href=
"#gpg-submit-your-public-key-to-a-pgp-server-optional">gpg - submit your public key to a PGP server (Optional)
</a></li>
208 <li class=
"toctree-l3"><a href=
"#create-and-push-a-gpg-signed-tag">Create and push a GPG-signed tag
</a></li>
215 <a class=
"" href=
"../Coding-guidelines/">Coding guidelines
</a>
219 <a class=
"" href=
"../Directory-structure/">Directory structure
</a>
223 <a class=
"" href=
"../3rd-party-libraries/">3rd party libraries
</a>
227 <a class=
"" href=
"../Plugin-System/">Plugin System
</a>
231 <a class=
"" href=
"../Release-Shaarli/">Release Shaarli
</a>
235 <a class=
"" href=
"../Versioning-and-Branches/">Versioning and Branches
</a>
239 <a class=
"" href=
"../Security/">Security
</a>
243 <a class=
"" href=
"../Static-analysis/">Static analysis
</a>
247 <a class=
"" href=
"../Theming/">Theming
</a>
251 <a class=
"" href=
"../Unit-tests/">Unit tests
</a>
256 <li class=
"toctree-l1">
258 <span class=
"caption-text">About
</span>
262 <a class=
"" href=
"../FAQ/">FAQ
</a>
266 <a class=
"" href=
"../Community-&-Related-software/">Community & Related software
</a>
276 <section data-toggle=
"wy-nav-shift" class=
"wy-nav-content-wrap">
279 <nav class=
"wy-nav-top" role=
"navigation" aria-label=
"top navigation">
280 <i data-toggle=
"wy-nav-top" class=
"fa fa-bars"></i>
281 <a href=
"..">Shaarli Documentation
</a>
285 <div class=
"wy-nav-content">
286 <div class=
"rst-content">
287 <div role=
"navigation" aria-label=
"breadcrumbs navigation">
288 <ul class=
"wy-breadcrumbs">
289 <li><a href=
"..">Docs
</a> »</li>
293 <li>Development
»</li>
297 <li>GnuPG signature
</li>
298 <li class=
"wy-breadcrumbs-aside">
300 <a href=
"https://github.com/shaarli/Shaarli/edit/master/docs/GnuPG-signature.md"
301 class=
"icon icon-github"> Edit on GitHub
</a>
308 <div class=
"section">
310 <h2 id=
"introduction">Introduction
</h2>
311 <h3 id=
"pgp-and-gpg">PGP and GPG
</h3>
312 <p><a href=
"https://gnupg.org/">Gnu Privacy Guard
</a> (GnuPG) is an Open Source implementation of the
<a href=
"https://en.wikipedia.org/wiki/Pretty_Good_Privacy#OpenPGP">Pretty Good
313 Privacy
</a> (OpenPGP) specification. Its main purposes are digital authentication,
314 signature and encryption.
</p>
315 <p>It is often used by the
<a href=
"https://en.wikipedia.org/wiki/Free_and_open-source_software">FLOSS
</a> community to verify:
316 - Linux package signatures: Debian
<a href=
"https://wiki.debian.org/SecureApt">SecureApt
</a>, ArchLinux
<a href=
"https://www.archlinux.org/master-keys/">Master
318 -
<a href=
"https://en.wikipedia.org/wiki/Revision_control">SCM
</a> releases
& maintainer identity
</p>
319 <h3 id=
"trust">Trust
</h3>
320 <p>To quote Phil Pennock (the author of the
<a href=
"https://bitbucket.org/skskeyserver/sks-keyserver/wiki/Home">SKS
</a> key server - http://sks.spodhuis.org/):
</p>
322 <p>You MUST understand that presence of data in the keyserver (pools) in no way connotes trust. Anyone can generate a key, with any name or email address, and upload it. All security and trust comes from evaluating security at the “object level”, via PGP Web-Of-Trust signatures. This keyserver makes it possible to retrieve keys, looking them up via various indices, but the collection of keys in this public pool is KNOWN to contain malicious and fraudulent keys. It is the common expectation of server operators that users understand this and use software which, like all known common OpenPGP implementations, evaluates trust accordingly. This expectation is so common that it is not normally explicitly stated.
</p>
324 <p>Trust can be gained by having your key signed by other people (and signing their key back, too :) ), for instance during
<a href=
"https://en.wikipedia.org/wiki/Key_signing_party">key signing parties
</a>, see:
325 -
<a href=
"http://www.cryptnet.net/fdp/crypto/keysigning_party/en/keysigning_party.html">The Keysigning party HOWTO
</a>
326 -
<a href=
"https://en.wikipedia.org/wiki/Web_of_trust">Web of trust
</a></p>
327 <h2 id=
"generate-a-gpg-key">Generate a GPG key
</h2>
329 <li><a href=
"http://stackoverflow.com/a/16725717">Generating a GPG key for Git tagging
</a> (StackOverflow)
</li>
330 <li><a href=
"https://help.github.com/articles/generating-a-gpg-key/">Generating a GPG key
</a> (GitHub)
</li>
332 <h3 id=
"gpg-provide-identity-information">gpg - provide identity information
</h3>
333 <pre><code class=
"bash">$ gpg --gen-key
335 gpg (GnuPG)
2.1.6; Copyright (C)
2015 Free Software Foundation, Inc.
336 This is free software: you are free to change and redistribute it.
337 There is NO WARRANTY, to the extent permitted by law.
339 Note: Use
"gpg2 --full-gen-key
" for a full featured key generation dialog.
341 GnuPG needs to construct a user ID to identify your key.
343 Real name: Marvin the Paranoid Android
344 Email address: marvin@h2g2.net
345 You selected this USER-ID:
346 "Marvin the Paranoid Android
<marvin@h2g2.net
>"
348 Change (N)ame, (E)mail, or (O)kay/(Q)uit? o
349 We need to generate a lot of random bytes. It is a good idea to perform
350 some other action (type on the keyboard, move the mouse, utilize the
351 disks) during the prime generation; this gives the random number
352 generator a better chance to gain enough entropy.
355 <h3 id=
"gpg-entropy-interlude">gpg - entropy interlude
</h3>
356 <p>At this point, you will:
357 - be prompted for a secure password to protect your key (the input method will depend on your Desktop Environment and configuration)
358 - be asked to use your machine's input devices (mouse, keyboard, etc.) to generate random entropy; this step
<em>may take some time
</em> </p>
359 <h3 id=
"gpg-key-creation-confirmation">gpg - key creation confirmation
</h3>
360 <pre><code class=
"bash">gpg: key A9D53A3E marked as ultimately trusted
361 public and secret key created and signed.
363 gpg: checking the trustdb
364 gpg:
3 marginal(s) needed,
1 complete(s) needed, PGP trust model
365 gpg: depth:
0 valid:
2 signed:
0 trust:
0-,
0q,
0n,
0m,
0f,
2u
366 pub rsa2048/A9D53A3E
2015-
07-
31
367 Key fingerprint = AF2A
5381 E54B
2FD2
14C4 A9A3
0E35 ACA4 A9D5
3A3E
368 uid [ultimate] Marvin the Paranoid Android
<marvin@h2g2.net
>
369 sub rsa2048/
8C0EACF1
2015-
07-
31
372 <h3 id=
"gpg-submit-your-public-key-to-a-pgp-server-optional">gpg - submit your public key to a PGP server (Optional)
</h3>
373 <pre><code class=
"bash">$ gpg --keyserver pgp.mit.edu --send-keys A9D53A3E
374 gpg: sending key A9D53A3E to hkp server pgp.mit.edu
377 <h2 id=
"create-and-push-a-gpg-signed-tag">Create and push a GPG-signed tag
</h2>
378 <p>See
<a href=
"../Release Shaarli">Release Shaarli
</a>.
</p>
384 <div class=
"rst-footer-buttons" role=
"navigation" aria-label=
"footer navigation">
386 <a href=
"../Coding-guidelines/" class=
"btn btn-neutral float-right" title=
"Coding guidelines">Next
<span class=
"icon icon-circle-arrow-right"></span></a>
389 <a href=
"../Continuous-integration-tools/" class=
"btn btn-neutral" title=
"Continuous integration tools"><span class=
"icon icon-circle-arrow-left"></span> Previous
</a>
396 <div role=
"contentinfo">
397 <!-- Copyright etc -->
401 Built with
<a href=
"http://www.mkdocs.org">MkDocs
</a> using a
<a href=
"https://github.com/snide/sphinx_rtd_theme">theme
</a> provided by
<a href=
"https://readthedocs.org">Read the Docs
</a>.
411 <div class=
"rst-versions" role=
"note" style=
"cursor: pointer">
412 <span class=
"rst-current-version" data-toggle=
"rst-current-version">
414 <a href=
"https://github.com/shaarli/Shaarli" class=
"fa fa-github" style=
"float: left; color: #fcfcfc"> GitHub
</a>
417 <span><a href=
"../Continuous-integration-tools/" style=
"color: #fcfcfc;">« Previous
</a></span>
420 <span style=
"margin-left: 15px"><a href=
"../Coding-guidelines/" style=
"color: #fcfcfc">Next
»</a></span>
424 <script src=
"../js/theme.js"></script>