title: Unexpected Exception in open_reader()
body: <p>I am using pdftk library in ubuntu 16.04 to merge several pdf. Everything is OK, when I installed a SSL certificate I get this error :</p>
  
  <pre><code>Error: Unexpected Exception in open_reader()
  java.lang.RuntimeException: java.lang.RuntimeException: error instantiating 
  default socket factory: java.security.KeyManagementException: 
  java.security.KeyStoreException: java.io.FileNotFoundException: 
  /usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre/lib/security/cacerts (No such file or 
  directory)
  at javax.net.ssl.SSLSocketFactory$ErrorSocketFactory.createSocket(libgcj.so.16)
  at gnu.java.net.protocol.http.HTTPConnection.getSocket(libgcj.so.16)
  at gnu.java.net.protocol.http.HTTPConnection.getOutputStream(libgcj.so.16)
  at gnu.java.net.protocol.http.Request.dispatch(libgcj.so.16)
  at gnu.java.net.protocol.http.HTTPURLConnection.connect(libgcj.so.16)
  at gnu.java.net.protocol.http.HTTPURLConnection.getInputStream(libgcj.so.16)
  at java.net.URL.openStream(libgcj.so.16)
  at pdftk.com.lowagie.text.pdf.RandomAccessFileOrArray.&lt;init&gt;(pdftk)
  at pdftk.com.lowagie.text.pdf.PRTokeniser.&lt;init&gt;(pdftk)
  at pdftk.com.lowagie.text.pdf.PdfReader.&lt;init&gt;(pdftk)
  at pdftk.com.lowagie.text.pdf.PdfReader.&lt;init&gt;(pdftk)
  Caused by: java.lang.RuntimeException: error instantiating default socket 
  factory: java.security.KeyManagementException: java.security.KeyStoreException: 
  java.io.FileNotFoundException: /usr/lib/jvm/java-1.5.0-gcj-5- 
  amd64/jre/lib/security/cacerts (No such file or directory)
  at javax.net.ssl.SSLSocketFactory.getDefault(libgcj.so.16)
  at javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(libgcj.so.16)
  at javax.net.ssl.HttpsURLConnection.getSSLSocketFactory(libgcj.so.16)
  </code></pre>
  
  <p>after several research I find that the problem comes from the https link.
  When I use a link from a pdf file whith <strong>https</strong> It doesn't work For example : </p>
  
  <pre><code>sudo pdftk https://www.fifa.com/mm/document/fanfest/magazine/magazine09-06p.3en_3465.pdf output 1805.pdf
  </code></pre>
  
  <p>Could you please help me fix this error.</p>