title: Java APNS Certificate Error with "DerInputStream.getLength(): lengthTag=109, too big."
body: <p>When I try to using java APNS to send the push notification to iOS, I got this error message:</p>
  
  <p><strong>com.notnoop.exceptions.InvalidSSLConfig: java.io.IOException: DerInputStream.getLength(): lengthTag=109, too big.</strong></p>
  
  <p>I already try converting the certificate to Personal Information Exchange (.p12) also getting the same error. Anyone know to problem and how to resolve it?</p>
  
  <p><strong>Here are my java code:</strong></p>
  
  <pre><code>ApnsService service =
      APNS.newService()
     .withCert("src/net/notification/ck.jks", "******")
     .withSandboxDestination()
     .build();
  
  String payload = APNS.newPayload().alertBody(record.getSendMsg()).build();
  String token = record.getToken();
  service.push(token, payload);
  </code></pre>
  
  <p>Thanks.</p>