FreedomBox/plinth/modules/monkeysphere/templates/monkeysphere_details.html
Sunil Mohan Adapa f4601e7b05
monkeysphere: Reorganize around keys instead
- Read Apache configuration to find the list of all available
  certificates and their associated domains.  Use this for setting UIDs
  properly.

- Solve the issue of re-importing renewed certficiate.  Use the SSH
  fingerprints as unique keys instead of domain names.  Compute SSH
  fingerprints for SSH keys and HTTPS certficates inorder accurately
  identify if they are currently imported into monkeysphere.

- Allow having more than one domains for a certficiate.  Add action to
  import new domains to an existing monkeysphere OpenPGP key.

- Import only once for a given certficiate and keep adding UIDs when
  domains get added.

- Merge services SSH and HTTPS giving us the ability to deals with many
  more services.  Remove special handling for different kinds of
  certificate sources.

- Supress monkeysphere prompts in case of reusing UIDs.
2016-03-08 23:32:29 +05:30

103 lines
2.8 KiB
HTML

{% extends "base.html" %}
{% comment %}
#
# This file is part of Plinth.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
{% endcomment %}
{% load bootstrap %}
{% load i18n %}
{% block content %}
<h2>{% trans "Monkeysphere" %}</h2>
<table class="table table-bordered table-condensed table-striped">
<tbody>
<tr>
<td>{% trans "OpenPGP Fingerprint" %}</td>
<td>{{ key.openpgp_fingerprint }}</td>
</tr>
<tr>
<td>{% trans "OpenPGP Key ID" %}</td>
<td>{{ key.pub }}</td>
</tr>
<tr>
<td>{% trans "OpenPGP User IDs" %}</td>
<td>{{ key.uids|join:', ' }}</td>
</tr>
<tr>
<td>{% trans "Key Import Date" %}</td>
<td>{{ key.date }}</td>
</tr>
<tr>
<td>{% trans "SSH Key Type" %}</td>
<td>{{ key.ssh_key_type }}</td>
</tr>
<tr>
<td>{% trans "SSH Key Size" %}</td>
<td>{{ key.ssh_key_size }}</td>
</tr>
<tr>
<td>{% trans "SSH Fingerprint" %}</td>
<td>{{ key.ssh_fingerprint }}</td>
</tr>
<tr>
<td>{% trans "Service" %}</td>
<td>
{% if key.service == 'ssh' %}
{% trans "Secure Shell" %}
{% elif key.service == 'https' %}
{% trans "Web Server" %}
{% else %}
{% trans "Other" %}
{% endif %}
</td>
</tr>
<tr>
<td>{% trans "Key File" %}</td>
<td>{{ key.key_file }}</td>
</tr>
<tr>
<td>{% trans "Available Domains" %}</td>
<td>{{ key.available_domains|join:', ' }}</td>
</tr>
<tr>
<td>{% trans "Added Domains" %}</td>
<td>{{ key.imported_domains|join:', ' }}</td>
</tr>
</tbody>
</table>
<p>
{% blocktrans trimmed %}
After this key is published to the keyservers, it can be signed using
<a href="https://www.gnupg.org/">GnuPG</a> with the following commands:
{% endblocktrans %}
</p>
<pre>
# {% trans "Download the key" %}
gpg --recv-key {{ key.openpgp_fingerprint }}
# {% trans "Sign the key" %}
gpg --sign-key {{ key.openpgp_fingerprint }}
# {% trans "Send the key back to the keyservers" %}
gpg --send-key {{ key.openpgp_fingerprint }}
</pre>
{% endblock %}