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