<docbook><section><title>VirtPubSubHubACL</title><title>Set Up PubSubHub to use WebID Protocol / IP based control lists</title>Set Up <ulink url="PubSubHub">PubSubHub</ulink> to use <ulink url="WebID">WebID</ulink> Protocol / IP based control lists
<para>The following Guide demonstrates how to subscribes to the publications:</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h2"> Prerequisites</bridgehead>
<itemizedlist mark="bullet" spacing="compact"><listitem>The <ulink url="https://virtuoso.openlinksw.com/download/">pubsubhub_dav.vad</ulink> must be installed </listitem>
<listitem>The HTTPS listener must be <ulink url="VirtODSPubSubHub">configured</ulink> to accept self-signed certificates </listitem>
<listitem>The Conductor must be installed</listitem>
</itemizedlist><bridgehead class="http://www.w3.org/1999/xhtml:h2"> Access Control Lists by IP</bridgehead>
<itemizedlist mark="bullet" spacing="compact"><listitem><ulink url="VirtPubSubHubACLDefinePSH">Define the *PSH* ACL list</ulink> </listitem>
<listitem><ulink url="VirtPubSubHubACLDefinePSHSSL">Define the *PSH-SSL* ACL list</ulink></listitem>
</itemizedlist><para> </para>
<bridgehead class="http://www.w3.org/1999/xhtml:h2"> Creating PSH Virtual Directory</bridgehead>
<itemizedlist mark="bullet" spacing="compact"><listitem>Make sure there is <emphasis>/psh</emphasis> folder <ulink url="VirtPubSubHubACLPSHVFolder">defined</ulink> at your HTTPS Listener</listitem>
</itemizedlist><para> </para>
<bridgehead class="http://www.w3.org/1999/xhtml:h2"> Testing the WebID Protocol ACLs</bridgehead>
<orderedlist spacing="compact"><listitem>Open the subscription demo client UI via HTTPS: in our example this would be: <programlisting>https://ods-qa.openlinksw.com/psh/subscribe.html
</programlisting></listitem>
<listitem>As result at this step you will be asked to give a certificate: <itemizedlist mark="bullet" spacing="compact"><listitem>Select the certificate for which <ulink url="WebID">WebID</ulink> we have registered in PSH-SSL ACL to be allowed.
<figure><graphic fileref="VirtPubSubHubACL/i20.png" /></figure> </listitem>
</itemizedlist></listitem>
<listitem>In the &quot;Subscribe/Unsubscribe&quot; shown form enter: <orderedlist spacing="compact"><listitem>Callback: (the subscriber URL): your host subscribe URL.
 In our example it it: <ulink url="http://ods-qa.openlinksw.com/psh/callback.vsp">http://ods-qa.openlinksw.com/psh/callback.vsp</ulink> </listitem>
<listitem>Topic type: Feed </listitem>
<listitem>Topic: the URL you have registered in PSH ACL from above.
 In our example it is: <ulink url="http://ods-qa.openlinksw.com/weblog/dav/dav-blog-0/gems/atom.xml">http://ods-qa.openlinksw.com/weblog/dav/dav-blog-0/gems/atom.xml</ulink> <figure><graphic fileref="VirtPubSubHubACL/i21.png" /></figure> </listitem>
</orderedlist></listitem>
<listitem>Click &quot;Subscribe&quot; </listitem>
<listitem>As result we get Success message: <figure><graphic fileref="VirtPubSubHubACL/i22.png" /></figure> </listitem>
<listitem>Next we try other certificate, or even w/o certificate.
<itemizedlist mark="bullet" spacing="compact"><listitem>Note: To manage Firefox to get new certificate you should restart your browser first.
</listitem>
<listitem>Then we repeat the same steps above but with difference that we use other certificate <figure><graphic fileref="VirtPubSubHubACL/i23.png" /></figure> </listitem>
<listitem>In this case when we trying to subscribe we will get &#39;Access denied&#39; error: <figure><graphic fileref="VirtPubSubHubACL/i24.png" /></figure></listitem>
</itemizedlist></listitem>
</orderedlist><bridgehead class="http://www.w3.org/1999/xhtml:h2">Related</bridgehead>
 <itemizedlist mark="bullet" spacing="compact"><listitem><ulink url="VirtODSPubSubHub">Setting up PubSubHub in ODS</ulink> </listitem>
<listitem><ulink url="VirtPubSubHub">PubSubHubBub Demo Client Example</ulink> </listitem>
<listitem><ulink url="VirtFeedPubSubHub">Feed subscription via PubSubHub protocol Example</ulink> </listitem>
<listitem><ulink url="http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtSPARQLSSL">Creating and Using a SPARQL-SSL based Endpoint</ulink> </listitem>
<listitem><ulink url="http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtAuthServerUI">Set WebID Protocol ACLs using the Virtuoso Authentication Server UI</ulink> </listitem>
<listitem><ulink url="http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtAuthFOAFSSLACL">WebID Protocol ACLs Tutorial</ulink> </listitem>
<listitem><ulink url="http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VirtOAuthSPARQL">SPARQL OAuth Tutorial</ulink> </listitem>
<listitem><ulink url="VirtODSFOAFSSL">WebID Protocol Support in OpenLink Data Spaces</ulink> </listitem>
<listitem><ulink url="ODSPkiSetup">Guide to Setting up a X.509 certificate issuer and HTTPS listener and Generating ODS user certificates</ulink> </listitem>
<listitem><ulink url="OdsKeyImport">CA Keys Import using Conductor</ulink> </listitem>
<listitem><ulink url="ODSGenerateX509Certificate">Generate an X.509 Certificate hosted WebID Guide</ulink> </listitem>
<listitem><ulink url="ODSBriefcaseFOAFSSLShareFile">ODS Briefcase WebID Protocol Share File Guide</ulink> </listitem>
<listitem><ulink url="http://esw.w3.org/topic/foaf+ssl">WebID Protocol Specification</ulink> </listitem>
<listitem><ulink url="https://foaf.me/simpleLogin.php">Test WebID Protocol Certificate page</ulink> </listitem>
<listitem><ulink url="http://test.foafssl.org/cert/">WebID Protocol Certificate Generation page</ulink> </listitem>
<listitem><ulink url="https://demo.openlinksw.com/sparql-ssl">Virtuoso Demo SPARQL-SSL Endpoint</ulink></listitem>
</itemizedlist></section></docbook>