title: MakeSignature.signDetached throws IllegalArgumentException
body: <p>while using <code>MakeSignature.signDetached</code> to apply digital signature to PDF using LUNA HSM 1700.</p>
  
  <p>Please guide me to resolve this issue.</p>
  
  <p>Thanks In Advance.</p>
  
  <p>Method as below:</p>
  
  <pre><code>public static void Digital_signed(String SRC,String DEST) 
  throws IOException, GeneralSecurityException, DocumentException , Exception{
      try {
          char[] pkcs11PIN = "devicepassword".toCharArray();
          Provider p = null;
          FileInputStream fis = new FileInputStream(configFileName);
          p = new SunPKCS11(fis);
          String provide_name =p.getName();
          Security.addProvider(p);
          KeyStore ks =  KeyStore.getInstance("PKCS11","SunPKCS11-Luna");
          ks.load(null, pkcs11PIN);
          String alias = (String)ks.aliases().nextElement();
          PrivateKey pk = (PrivateKey) ks.getKey(alias, pkcs11PIN);
          Certificate[] chain = ks.getCertificateChain(alias);
          TSAClient tsaClient = null;
          for (int i = 0; i &lt; chain.length; i++) {
              X509Certificate cert = (X509Certificate)chain[i];
              String tsaUrl = CertificateUtil.getTSAURL(cert);
              if (tsaUrl != null) {
                  tsaClient = new TSAClientBouncyCastle(tsaUrl);
                  break;
              }
          }
  
          List &lt;CrlClient&gt; crlList = new ArrayList&lt;CrlClient&gt;();
  
          PdfReader reader = new PdfReader(SRC);
          FileOutputStream os = new FileOutputStream(DEST);
          PdfStamper stamper = PdfStamper.createSignature(reader, os, '\0');
          PdfSignatureAppearance appearance = stamper.getSignatureAppearance();
          appearance.setVisibleSignature(new Rectangle(700, 820, 760, 780), 1, "sig");
          ExternalSignature pks = new PrivateKeySignature(pk,  DigestAlgorithms.SHA256, provide_name);
          ExternalDigest digest = new BouncyCastleDigest();
  
          MakeSignature.signDetached(appearance, digest, pks, chain, crlList, null, tsaClient, 0, CryptoStandard.CMS);
      }  
      catch(Exception e)
      {}
      finally{ }
  }
  </code></pre>
  
  <p>ERROR AS BELOW:</p>
  
  <blockquote>
    <p>java.lang.IllegalArgumentException: The name 'iText? 5.5.0 ?2000-2013 iText Group NV (AGPL-version) (AGPL-version) (AGPL-version) (AGPL-version) (AGPL-version) (AGPL-version) (AGPL-version)' is too long (143 characters).</p>
  </blockquote>