<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.open-xchange.com/wiki/index.php?action=history&amp;feed=atom&amp;title=AppSuite%3AUpdating_To_Guard_PGP</id>
	<title>AppSuite:Updating To Guard PGP - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.open-xchange.com/wiki/index.php?action=history&amp;feed=atom&amp;title=AppSuite%3AUpdating_To_Guard_PGP"/>
	<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Updating_To_Guard_PGP&amp;action=history"/>
	<updated>2026-06-30T22:48:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Updating_To_Guard_PGP&amp;diff=20232&amp;oldid=prev</id>
		<title>WolfgangRosenauer: /* Step 2: Upgrade */</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Updating_To_Guard_PGP&amp;diff=20232&amp;oldid=prev"/>
		<updated>2015-08-24T12:11:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Step 2: Upgrade&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:11, 24 August 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l34&quot;&gt;Line 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;On command line:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;On command line:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  /opt/open-xchange/sbin/guard upgradePGP&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  /opt/open-xchange&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/guard&lt;/ins&gt;/sbin/guard upgradePGP&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This will begin the upgrade process.  First, the required database alter function are performed.  This is the only stage that locks the tables.  During this process, no additional Guard users can be created.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This will begin the upgrade process.  First, the required database alter function are performed.  This is the only stage that locks the tables.  During this process, no additional Guard users can be created.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>WolfgangRosenauer</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Updating_To_Guard_PGP&amp;diff=19604&amp;oldid=prev</id>
		<title>Zap23: /* Step 1: Test installation */</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Updating_To_Guard_PGP&amp;diff=19604&amp;oldid=prev"/>
		<updated>2015-05-19T10:54:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Step 1: Test installation&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:54, 19 May 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l16&quot;&gt;Line 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 16:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;On command line:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;On command line:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  /opt/open-xchange/sbin/guard test john@doe.com&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  /opt/open-xchange&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/guard&lt;/ins&gt;/sbin/guard test john@doe.com&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Guard should return a result similar to  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Guard should return a result similar to  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Zap23</name></author>
	</entry>
	<entry>
		<id>https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Updating_To_Guard_PGP&amp;diff=19592&amp;oldid=prev</id>
		<title>Greg.hill: /* Updating Guard 1.2 to 2.0 */</title>
		<link rel="alternate" type="text/html" href="https://wiki.open-xchange.com/wiki/index.php?title=AppSuite:Updating_To_Guard_PGP&amp;diff=19592&amp;oldid=prev"/>
		<updated>2015-05-18T13:26:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Updating Guard 1.2 to 2.0&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Guard Update =&lt;br /&gt;
&lt;br /&gt;
Starting with Guard 2.0, the proprietary Guard format is discontinued in favor of PGP encryption.  The proprietary format is still supported for decoding/reading, but all future encryption will be done with PGP compliant encryption.&lt;br /&gt;
&lt;br /&gt;
The upgrade from 1.2 to 2.0 requires database modification and data population.  During the update, Guard 1.2 servers can continue to operate.  During the alter tables, no additional Guard members can be added, but users can continue to encrypt and decode items.  After the alter table is complete, a data population phase begins.  During this phase, lookup tables are created for the existing PGP public keys.  Depending on the number of users, this may take a while, but there will be no impact on the functioning Guard 1.2 servers.&lt;br /&gt;
&lt;br /&gt;
The database upgrade is required for Guard 2.0 to function, but Guard 1.2 will function without issue on the updated database.&lt;br /&gt;
&lt;br /&gt;
== Guard Upgrade Process ==&lt;br /&gt;
&lt;br /&gt;
Install Guard 2.0 on the server you would like to do the upgrade.  The guard.properties file should reflect all of the database and REST API settings as before.  There have been some changes in the guard.properties file (addressed below), but there are no changes required for the update process&lt;br /&gt;
&lt;br /&gt;
=== Step 1: Test installation ===&lt;br /&gt;
&lt;br /&gt;
Once the installation is complete, it is often best to test that Guard is configured properly and able to communiate with the OX backend.  Use an email address that is a user on the OX system...for this example, we'll use john@doe.com&lt;br /&gt;
&lt;br /&gt;
On command line:&lt;br /&gt;
 /opt/open-xchange/sbin/guard test john@doe.com&lt;br /&gt;
&lt;br /&gt;
Guard should return a result similar to &lt;br /&gt;
  Response received.  Testing JSON&lt;br /&gt;
  {&amp;quot;john@doe.com&amp;quot;:{&amp;quot;uid&amp;quot;:13,&amp;quot;user&amp;quot;:{&amp;quot;language&amp;quot;:&amp;quot;en_US&amp;quot;,&amp;quot;displayName&amp;quot;:&amp;quot;John Smith&amp;quot;},&amp;quot;cid&amp;quot;:10}}&lt;br /&gt;
  User id 13&lt;br /&gt;
  Context 10&lt;br /&gt;
  Language en_US&lt;br /&gt;
  Name John Smith&lt;br /&gt;
  Success&lt;br /&gt;
&lt;br /&gt;
If you do not get a &amp;quot;Success&amp;quot;, then check the logs and guard.properties file for a configuration issue.&lt;br /&gt;
&lt;br /&gt;
=== Step 2: Upgrade ===&lt;br /&gt;
&lt;br /&gt;
Once the installation is verified, the upgrade process can begin.&lt;br /&gt;
&lt;br /&gt;
On command line:&lt;br /&gt;
 /opt/open-xchange/sbin/guard upgradePGP&lt;br /&gt;
&lt;br /&gt;
This will begin the upgrade process.  First, the required database alter function are performed.  This is the only stage that locks the tables.  During this process, no additional Guard users can be created.&lt;br /&gt;
&lt;br /&gt;
Once this is done, then the lookup tables are populated.  Progress will be written to the console.  &lt;br /&gt;
&lt;br /&gt;
Once complete, the database upgrade is finished.&lt;br /&gt;
&lt;br /&gt;
=== Step 3: Configuration File ===&lt;br /&gt;
&lt;br /&gt;
There are some minor changes to the Guard backend's guard.properties file.  This file will have to be altered on each of the Guard servers when they are each updated.&lt;br /&gt;
&lt;br /&gt;
==== PGP lookup ====&lt;br /&gt;
&lt;br /&gt;
When a user tries to send a PGP email to a recipient, Guard will check configured public key servers for the recipients PGP Public key.  You can configure which servers are used in a comma deliminated list.&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.publicPGPDirectory = hkp://keys.gnupg.net:11371, hkp://pgp.mit.edu:11371&lt;br /&gt;
&lt;br /&gt;
==== External Email URL ====&lt;br /&gt;
&lt;br /&gt;
The URL for the external guest reader has been changed.  The value can now be configured through the configuration cascade so that a custom domain can be used for each context.  The guard.properties file contains the default value if the configuration cascade is not present&lt;br /&gt;
&lt;br /&gt;
 com.openexchange.guard.externalReaderPath=example.com/appsuite/api/oxguard/reader/reader.html&lt;br /&gt;
&lt;br /&gt;
This value will be used as the default unless over-written by cascade value&lt;br /&gt;
com.openexchange.guard.externalReaderURL&lt;br /&gt;
&lt;br /&gt;
Finally, each PGP email is also sent with a help file that explains what PGP is, and how to log onto Appsuite to view the email.  The domain for appsuite should be configured here&lt;br /&gt;
 com.openexchange.guard.externalEmailURL=example.com&lt;br /&gt;
&lt;br /&gt;
=== Step 4: Start ===&lt;br /&gt;
&lt;br /&gt;
Start Guard 2.0 using (Debian)&lt;br /&gt;
 /etc/init.d/open-xchange-guard start&lt;/div&gt;</summary>
		<author><name>Greg.hill</name></author>
	</entry>
</feed>