Changeset 5386 for branches/2.3/security/ExpressoCert/src/br/gov/serpro/cert/DigitalCertificate.java
- Timestamp:
- 01/17/12 15:57:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/security/ExpressoCert/src/br/gov/serpro/cert/DigitalCertificate.java
r5276 r5386 483 483 return null; 484 484 } 485 485 486 486 Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider()); 487 487 … … 837 837 838 838 if (this.setup.getParameter("debug").equalsIgnoreCase("true")) { 839 System.out.println("\nthis.cert: "+ Base64Utils.der2pem(this.cert.getEncoded())+"\n");839 System.out.println("\nthis.cert: "+ this.getPEMCertificate()+"\n"); 840 840 } 841 841 842 httppost.addParameter("certificado", Base64Utils.der2pem(this.cert.getEncoded()));842 httppost.addParameter("certificado", this.getPEMCertificate()); 843 843 httpclient.executeMethod(httppost); 844 844 resposta = httppost.getResponseBodyAsString().split(CRLF); … … 976 976 public String getPEMCertificate() throws CertificateEncodingException { 977 977 if (this.cert != null){ 978 return Base64Utils.der2pem(this.cert.getEncoded() );978 return Base64Utils.der2pem(this.cert.getEncoded(), true); 979 979 } 980 980 return null;
Note: See TracChangeset
for help on using the changeset viewer.