Ignore:
Timestamp:
01/17/12 15:57:56 (12 years ago)
Author:
rafaelraymundo
Message:

Ticket #2451 - Erro no login com certificado, verificação cas.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/security/ExpressoCert/src/br/gov/serpro/cert/DigitalCertificate.java

    r5276 r5386  
    483483            return null; 
    484484        } 
    485  
     485         
    486486        Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider()); 
    487487 
     
    837837 
    838838            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"); 
    840840            } 
    841841 
    842             httppost.addParameter("certificado", Base64Utils.der2pem(this.cert.getEncoded())); 
     842            httppost.addParameter("certificado", this.getPEMCertificate()); 
    843843            httpclient.executeMethod(httppost); 
    844844            resposta = httppost.getResponseBodyAsString().split(CRLF); 
     
    976976    public String getPEMCertificate() throws CertificateEncodingException { 
    977977        if (this.cert != null){ 
    978             return Base64Utils.der2pem(this.cert.getEncoded()); 
     978            return Base64Utils.der2pem(this.cert.getEncoded(), true); 
    979979        } 
    980980        return null; 
Note: See TracChangeset for help on using the changeset viewer.