]> pere.pagekite.me Git - homepage.git/blobdiff - blog/archive/2014/03/03.rss
Remove obsolete pages.
[homepage.git] / blog / archive / 2014 / 03 / 03.rss
index 689c8eab91613d9452d2ca81342647e26a2f2f41..9ab9ccdd4a4c2f34806008b6c8d449090154557f 100644 (file)
                 <link>http://people.skolelinux.org/pere/blog/</link>
 
        
+       <item>
+               <title>Public Trusted Timestamping services for everyone</title>
+               <link>http://people.skolelinux.org/pere/blog/Public_Trusted_Timestamping_services_for_everyone.html</link>        
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Public_Trusted_Timestamping_services_for_everyone.html</guid>
+                <pubDate>Tue, 25 Mar 2014 12:50:00 +0100</pubDate>
+               <description>&lt;p&gt;Did you ever need to store logs or other files in a way that would
+allow it to be used as evidence in court, and needed a way to
+demonstrate without reasonable doubt that the file had not been
+changed since it was created?  Or, did you ever need to document that
+a given document was received at some point in time, like some
+archived document or the answer to an exam, and not changed after it
+was received?  The problem in these settings is to remove the need to
+trust yourself and your computers, while still being able to prove
+that a file is the same as it was at some given time in the past.&lt;/p&gt;
+
+&lt;p&gt;A solution to these problems is to have a trusted third party
+&quot;stamp&quot; the document and verify that at some given time the document
+looked a given way.  Such
+&lt;a href=&quot;https://en.wikipedia.org/wiki/Notarius&quot;&gt;notarius&lt;/a&gt; service
+have been around for thousands of years, and its digital equivalent is
+called a
+&lt;a href=&quot;http://en.wikipedia.org/wiki/Trusted_timestamping&quot;&gt;trusted
+timestamping service&lt;/a&gt;.  &lt;a href=&quot;http://www.ietf.org/&quot;&gt;The Internet
+Engineering Task Force&lt;/a&gt; standardised how such service could work a
+few years ago as &lt;a href=&quot;http://tools.ietf.org/html/rfc3161&quot;&gt;RFC
+3161&lt;/a&gt;.  The mechanism is simple.  Create a hash of the file in
+question, send it to a trusted third party which add a time stamp to
+the hash and sign the result with its private key, and send back the
+signed hash + timestamp.  Both email, FTP and HTTP can be used to
+request such signature, depending on what is provided by the service
+used. Anyone with the document and the signature can then verify that
+the document matches the signature by creating their own hash and
+checking the signature using the trusted third party public key.
+There are several commercial services around providing such
+timestamping.  A quick search for
+&quot;&lt;a href=&quot;https://duckduckgo.com/?q=rfc+3161+service&quot;&gt;rfc 3161
+service&lt;/a&gt;&quot; pointed me to at least
+&lt;a href=&quot;https://www.digistamp.com/technical/how-a-digital-time-stamp-works/&quot;&gt;DigiStamp&lt;/a&gt;,
+&lt;a href=&quot;http://www.quovadisglobal.co.uk/CertificateServices/SigningServices/TimeStamp.aspx&quot;&gt;Quo
+Vadis&lt;/a&gt;,
+&lt;a href=&quot;https://www.globalsign.com/timestamp-service/&quot;&gt;Global Sign&lt;/a&gt;
+and &lt;a href=&quot;http://www.globaltrustfinder.com/TSADefault.aspx&quot;&gt;Global
+Trust Finder&lt;/a&gt;.  The system work as long as the private key of the
+trusted third party is not compromised.&lt;/p&gt;
+
+&lt;p&gt;But as far as I can tell, there are very few public trusted
+timestamp services available for everyone.  I&#39;ve been looking for one
+for a while now. But yesterday I found one over at
+&lt;a href=&quot;https://www.pki.dfn.de/zeitstempeldienst/&quot;&gt;Deutches
+Forschungsnetz&lt;/a&gt; mentioned in
+&lt;a href=&quot;http://www.d-mueller.de/blog/dealing-with-trusted-timestamps-in-php-rfc-3161/&quot;&gt;a
+blog by David Müller&lt;/a&gt;.  I then found
+&lt;a href=&quot;http://www.rz.uni-greifswald.de/support/dfn-pki-zertifikate/zeitstempeldienst.html&quot;&gt;a
+good recipe on how to use the service&lt;/a&gt; over at the University of
+Greifswald.&lt;/p&gt;
+
+&lt;p&gt;&lt;a href=&quot;http://www.openssl.org/&quot;&gt;The OpenSSL library&lt;/a&gt; contain
+both server and tools to use and set up your own signing service.  See
+the ts(1SSL), tsget(1SSL) manual pages for more details.  The
+following shell script demonstrate how to extract a signed timestamp
+for any file on the disk in a Debian environment:&lt;/p&gt;
+
+&lt;p&gt;&lt;blockquote&gt;&lt;pre&gt;
+#!/bin/sh
+set -e
+url=&quot;http://zeitstempel.dfn.de&quot;
+caurl=&quot;https://pki.pca.dfn.de/global-services-ca/pub/cacert/chain.txt&quot;
+reqfile=$(mktemp -t tmp.XXXXXXXXXX.tsq)
+resfile=$(mktemp -t tmp.XXXXXXXXXX.tsr)
+cafile=chain.txt
+if [ ! -f $cafile ] ; then
+    wget -O $cafile &quot;$caurl&quot;
+fi
+openssl ts -query -data &quot;$1&quot; -cert | tee &quot;$reqfile&quot; \
+    | /usr/lib/ssl/misc/tsget -h &quot;$url&quot; -o &quot;$resfile&quot;
+openssl ts -reply -in &quot;$resfile&quot; -text 1&gt;&amp;2
+openssl ts -verify -data &quot;$1&quot; -in &quot;$resfile&quot; -CAfile &quot;$cafile&quot; 1&gt;&amp;2
+base64 &lt; &quot;$resfile&quot;
+rm &quot;$reqfile&quot; &quot;$resfile&quot;
+&lt;/pre&gt;&lt;/blockquote&gt;&lt;/p&gt;
+
+&lt;p&gt;The argument to the script is the file to timestamp, and the output
+is a base64 encoded version of the signature to STDOUT and details
+about the signature to STDERR.  Note that due to
+&lt;a href=&quot;http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=742553&quot;&gt;a bug
+in the tsget script&lt;/a&gt;, you might need to modify the included script
+and remove the last line.  Or just write your own HTTP uploader using
+curl. :) Now you too can prove and verify that files have not been
+changed.&lt;/p&gt;
+
+&lt;p&gt;But the Internet need more public trusted timestamp services.
+Perhaps something for &lt;a href=&quot;http://www.uninett.no/&quot;&gt;Uninett&lt;/a&gt; or
+my work place the &lt;a href=&quot;http://www.uio.no/&quot;&gt;University of Oslo&lt;/a&gt;
+to set up?&lt;/p&gt;
+</description>
+       </item>
+       
+       <item>
+               <title>Video DVD reader library / python-dvdvideo - nice free software</title>
+               <link>http://people.skolelinux.org/pere/blog/Video_DVD_reader_library___python_dvdvideo___nice_free_software.html</link>        
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Video_DVD_reader_library___python_dvdvideo___nice_free_software.html</guid>
+                <pubDate>Fri, 21 Mar 2014 15:25:00 +0100</pubDate>
+               <description>&lt;p&gt;Keeping your DVD collection safe from scratches and curious
+children fingers while still having it available when you want to see a
+movie is not straight forward.  My preferred method at the moment is
+to store a full copy of the ISO on a hard drive, and use VLC, Popcorn
+Hour or other useful players to view the resulting file.  This way the
+subtitles and bonus material are still available and using the ISO is
+just like inserting the original DVD record in the DVD player.&lt;/p&gt;
+
+&lt;p&gt;Earlier I used dd for taking security copies, but it do not handle
+DVDs giving read errors (which are quite a few of them).  I&#39;ve also
+tried using
+&lt;a href=&quot;http://people.skolelinux.org/pere/blog/Ripping_problematic_DVDs_using_dvdbackup_and_genisoimage.html&quot;&gt;dvdbackup
+and genisoimage&lt;/a&gt;, but these days I use the marvellous python library
+and program
+&lt;a href=&quot;http://bblank.thinkmo.de/blog/new-software-python-dvdvideo&quot;&gt;python-dvdvideo&lt;/a&gt;
+written by Bastian Blank.  It is
+&lt;a href=&quot;http://packages.qa.debian.org/p/python-dvdvideo.html&quot;&gt;in Debian
+already&lt;/a&gt; and the binary package name is python3-dvdvideo. Instead
+of trying to read every block from the DVD, it parses the file
+structure and figure out which block on the DVD is actually in used,
+and only read those blocks from the DVD.  This work surprisingly well,
+and I have been able to almost backup my entire DVD collection using
+this method.&lt;/p&gt; So far, python-dvdvideo have failed on between 10 and
+20 DVDs, which is a small fraction of my collection.  The most common
+problem is
+&lt;a href=&quot;https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=720831&quot;&gt;DVDs
+using UTF-16 instead of UTF-8 characters&lt;/a&gt;, which according to
+Bastian is against the DVD specification (and seem to cause some
+players to fail too).  A rarer problem is what seem to be inconsistent
+DVD structures, as the python library
+&lt;a href=&quot;https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=723079&quot;&gt;claim
+there is a overlap between objects&lt;/a&gt;.  An equally rare problem claim
+&lt;a href=&quot;https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741878&quot;&gt;some
+value is out of range&lt;/a&gt;.  No idea what is going on there.  I wish I
+knew enough about the DVD format to fix these, to ensure my movie
+collection will stay with me in the future.&lt;/p&gt;
+
+&lt;p&gt;So, if you need to keep your DVDs safe, back them up using
+python-dvdvideo. :)&lt;/p&gt;
+</description>
+       </item>
+       
+       <item>
+               <title>Norsk utgave av Alaveteli / WhatDoTheyKnow på trappene</title>
+               <link>http://people.skolelinux.org/pere/blog/Norsk_utgave_av_Alaveteli___WhatDoTheyKnow_p__trappene.html</link>        
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Norsk_utgave_av_Alaveteli___WhatDoTheyKnow_p__trappene.html</guid>
+                <pubDate>Sun, 16 Mar 2014 09:30:00 +0100</pubDate>
+               <description>&lt;p&gt;Det offentlige Norge har mye kunnskap og informasjon.  Men hvordan
+kan en få tilgang til den på en enkel måte?  Takket være et lite
+knippe lover og tilhørende forskrifter, blant annet
+&lt;a href=&quot;http://lovdata.no/dokument/NL/lov/2006-05-19-16&quot;&gt;offentlighetsloven&lt;/a&gt;,
+&lt;a href=&quot;http://lovdata.no/dokument/NL/lov/2003-05-09-31&quot;&gt;miljøinformasjonsloven&lt;/a&gt;
+og
+&lt;a href=&quot;http://lovdata.no/dokument/NL/lov/1967-02-10/&quot;&gt;forvaltningsloven&lt;/a&gt;
+har en rett til å spørre det offentlige og få svar.  Men det finnes
+intet offentlig arkiv over hva andre har spurt om, og dermed risikerer en
+å måtte forstyrre myndighetene gang på gang for å få tak i samme
+informasjonen på nytt.  &lt;a href=&quot;http://www.mysociety.org/&quot;&gt;Britiske
+mySociety&lt;/a&gt; har laget tjenesten
+&lt;a href=&quot;http://www.whatdotheyknow.com/&quot;&gt;WhatDoTheyKnow&lt;/a&gt; som gjør
+noe med dette.  I Storbritannia blir WhatdoTheyKnow brukt i
+&lt;a href=&quot;http://www.mysociety.org/2011/07/01/whatdotheyknows-share-of-central-government-foi-requests-q2-2011/&quot;&gt;ca
+15% av alle innsynsforespørsler mot sentraladministrasjonen&lt;/a&gt;.
+Prosjektet heter &lt;a href=&quot;http://www.alaveteli.org/&quot;&gt;Alaveteli&lt;/A&gt;, og
+er takk i bruk en rekke steder etter at løsningen ble generalisert og
+gjort mulig å oversette.  Den hjelper borgerne med å be om innsyn,
+rådgir ved purringer og klager og lar alle se hvilke henvendelser som
+er sendt til det offentlige og hvilke svar som er kommet inn, i et
+søkpart arkiv.  Her i Norge holder vi i foreningen NUUG på å få opp en
+norsk utgave av Alaveteli, og her trenger vi din hjelp med
+oversettelsen.&lt;/p&gt;
+
+&lt;p&gt;Så langt er 76 % av Alaveteli oversatt til norsk bokmål, men vi
+skulle gjerne vært oppe i 100 % før lansering.  Oversettelsen gjøres
+på &lt;a href=&quot;https://www.transifex.com/projects/p/alaveteli/&quot;&gt;Transifex,
+der enhver som registrerer seg&lt;/a&gt; og ber om tilgang til
+bokmålsoversettelsen får bidra.  Vi har satt opp en test av tjenesten
+(som ikke sender epost til det offentlige, kun til oss som holder på å
+sette opp tjenesten) på maskinen
+&lt;a href=&quot;http://alaveteli-dev.nuug.no/&quot;&gt;alaveteli-dev.nuug.no&lt;/a&gt;, der
+en kan se hvordan de oversatte meldingen blir seende ut på nettsiden.
+Når tjenesten lanseres vil den hete
+&lt;a href=&quot;https://www.mimesbrønn.no/&quot;&gt;Mimes brønn&lt;/a&gt;, etter
+visdomskilden som Odin måtte gi øyet sitt for å få drikke i.  Den
+nettsiden er er ennå ikke klar til bruk.&lt;/p&gt;
+
+&lt;p&gt;Hvis noen vil oversette til nynorsk også, så skal vi finne ut
+hvordan vi lager en flerspråklig tjeneste.  Men i første omgang er
+fokus på bokmålsoversettelsen, der vi selv har nok peiling til å ha
+fått oversatt 76%, men trenger hjelp for å komme helt i mål. :)&lt;/p&gt;
+</description>
+       </item>
+       
        <item>
                <title>Freedombox on Dreamplug, Raspberry Pi and virtual x86 machine</title>
                <link>http://people.skolelinux.org/pere/blog/Freedombox_on_Dreamplug__Raspberry_Pi_and_virtual_x86_machine.html</link>        
                <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Freedombox_on_Dreamplug__Raspberry_Pi_and_virtual_x86_machine.html</guid>
                 <pubDate>Fri, 14 Mar 2014 11:00:00 +0100</pubDate>
                <description>&lt;p&gt;The &lt;a href=&quot;https://wiki.debian.org/FreedomBox&quot;&gt;Freedombox
-project&lt;/a&gt; is working on to providing the software and hardware for
+project&lt;/a&gt; is working on providing the software and hardware for
 making it easy for non-technical people to host their data and
 communication at home, and being able to communicate with their
 friends and family encrypted and away from prying eyes.  It has been
 going on for a while, and is slowly progressing towards a new test
-release (0.2).  And what day could be better than the Pi day to
-announce that the new version will provide &quot;hard drive&quot;/SD card/USB
-stick images for Dreamplug, Raspberry Pi and VirtualBox (or any other
-virtualization system), and can also be installed using a Debian
-installer preseed file.  The Debian based Freedombox is now based on
-Debian Jessie, where most of the needed packages used are already
-present.  Only one, the freedombox-setup package, is missing.  To try
-to build your own boot image to test the current status, fetch the
-freedom-maker scripts and build using
+release (0.2).&lt;/p&gt;
+
+&lt;p&gt;And what day could be better than the Pi day to announce that the
+new version will provide &quot;hard drive&quot; / SD card / USB stick images for
+Dreamplug, Raspberry Pi and VirtualBox (or any other virtualization
+system), and can also be installed using a Debian installer preseed
+file.  The Debian based Freedombox is now based on Debian Jessie,
+where most of the needed packages used are already present.  Only one,
+the freedombox-setup package, is missing.  To try to build your own
+boot image to test the current status, fetch the freedom-maker scripts
+and build using
 &lt;a href=&quot;http://packages.qa.debian.org/vmdebootstrap&quot;&gt;vmdebootstrap&lt;/a&gt;
 with a user with sudo access to become root: