]> 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 f825bdf3987b53bd646a33fe1223ca634c9c237b..9ab9ccdd4a4c2f34806008b6c8d449090154557f 100644 (file)
@@ -6,6 +6,150 @@
                 <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>        
@@ -46,7 +190,7 @@ 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;http://www.mimesbrønn.no/&quot;&gt;Mimes brønn&lt;/a&gt;, etter
+&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;