Skip to content

Commit d3f0638

Browse files
committed
Merge #669: Verification instructions: suggest keyserver
dffb4cc Verification instructions: suggest keyserver (David A. Harding) Pull request description: Closes #667 Adds the parameters necessary for using the Ubuntu keyserver to each case where we describe how to download a key. I put the string in the config file so it's easy to change or disable globally. Also makes a small unrelated change to the heading id tag to hopefully address #668 Top commit has no ACKs. Tree-SHA512: d44f310b34221692621348706eeefb8e028a716bf9d660023edfcf9efb1402b8135b0478187567e84cffab9c698d0b6de5cbb250ce56ab393b66302dfd390408
2 parents d75ba88 + dffb4cc commit d3f0638

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,6 @@ collections:
9999
output: true
100100
doc:
101101
output: true
102+
103+
strings:
104+
gpg_keyserver: " --keyserver hkp://keyserver.ubuntu.com" ## Prefix with a space

_includes/dev-keys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{% else %}{% comment %}fallback to English{% endcomment %}
99
{% assign _includes_dev_keys-name = "Name" %}
1010
{% assign _includes_dev_keys-fingerprint = "Fingerprint" %}
11-
{% capture _includes_dev_keys-import %}You can import a key by running the following command with that individual's fingerprint: `gpg --recv-keys "<fingerprint>"` Ensure that you put quotes around fingerprints containing spaces.{% endcapture %}
11+
{% capture _includes_dev_keys-import %}You can import a key by running the following command with that individual's fingerprint: `gpg{{site.strings.gpg_keyserver}} --recv-keys "<fingerprint>"` Ensure that you put quotes around fingerprints containing spaces.{% endcapture %}
1212
{% endcase %}
1313
{% endcapture %}
1414

_includes/templates/download.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ <h2>{{ page.latestversion }} {{CURRENT_RELEASE}} <a type="application/rss+xml" h
8080
<p class="downloadkeys">
8181
<span>{{ page.releasekeys }}</span>
8282
v0.11.0+ <code title="{{page.pgp_key_fingerprint}}">{{SIGNING_KEY_FINGERPRINT}}</code><br>
83-
{% if page.version > 2 %}<i>{{page.key_refresh}}</i> <code>gpg --refresh-keys</code>{% endif %}
83+
{% if page.version > 2 %}<i>{{page.key_refresh}}</i><br><code>gpg{{site.strings.gpg_keyserver}} --refresh-keys</code>{% endif %}
8484
</p>
8585
</div>
8686

@@ -90,7 +90,7 @@ <h2 style="text-align: center">{{ page.patient }}</h2>
9090
<p>{{ page.notesync | replace: '$(DATADIR_SIZE)', site.data.stats.datadir_gb | replace: '$(PRUNED_SIZE)', site.data.stats.pruned_gb | replace: '$(MONTHLY_RANGE_GB)', site.data.stats.monthly_storage_increase_range_gb }} {{ page.full_node_guide }}</p>
9191

9292
{% if page.version > 1 %}
93-
<h2 style="text-align: center">{{page.verify_download}}</h2>
93+
<h2 style="text-align: center" id="{{page.verify_download | slugify}}">{{page.verify_download}}</h2>
9494
<p>{{page.verification_recommended}}</p>
9595
<details>
9696
{% assign GPG = "C:\Program Files\Gnu\GnuPg\gpg.exe" %}
@@ -122,7 +122,7 @@ <h2 style="text-align: center">{{page.verify_download}}</h2>
122122

123123
<li><p>{{page.obtain_release_key}}</p>
124124

125-
<pre class="highlight"><code>{{GPG}} --recv-keys {{SIGNING_KEY_FINGERPRINT}}</code></pre>
125+
<pre class="highlight"><code>{{GPG}}{{site.strings.gpg_keyserver}} --recv-keys {{SIGNING_KEY_FINGERPRINT}}</code></pre>
126126

127127
<p>{{page.release_key_obtained}}</p></li>
128128

@@ -166,7 +166,7 @@ <h2 style="text-align: center">{{page.verify_download}}</h2>
166166

167167
<li><p>{{page.obtain_release_key}}</p>
168168

169-
<pre class="highlight"><code>gpg --recv-keys {{SIGNING_KEY_FINGERPRINT}}</code></pre>
169+
<pre class="highlight"><code>gpg{{site.strings.gpg_keyserver}} --recv-keys {{SIGNING_KEY_FINGERPRINT}}</code></pre>
170170

171171
<p>{{page.release_key_obtained}}</p></li>
172172

@@ -204,7 +204,7 @@ <h2 style="text-align: center">{{page.verify_download}}</h2>
204204

205205
<li><p>{{page.obtain_release_key}}</p>
206206

207-
<pre class="highlight"><code>gpg --recv-keys {{SIGNING_KEY_FINGERPRINT}}</code></pre>
207+
<pre class="highlight"><code>gpg{{site.strings.gpg_keyserver}} --recv-keys {{SIGNING_KEY_FINGERPRINT}}</code></pre>
208208

209209
<p>{{page.release_key_obtained}}</p></li>
210210

0 commit comments

Comments
 (0)