title: How do you print a PKCS10CertificationRequest as a String?
body: <p>Is there a way to print the CSR generated with PKCS10CertificationRequest class? I am struggling to see the generated request.</p>
  <pre><code>PKCS10CertificationRequest certRequest = new PKCS10CertificationRequest(fromByteArray);
  System.out.println(&quot;CSR string   = &quot;+certRequest.toString()); 
     
  System.out.println(&quot;CSR Subject Name  = &quot;+certRequest.getSubject().toString());
  System.out.println(&quot;CSR Subject PubkeyInfo  = &quot;+certRequest.getSubjectPublicKeyInfo().toString());
  </code></pre>