Skip to content

Handshake TLS/SSL #60

@ananiasfilho

Description

@ananiasfilho

Fiz alguns teste com os servidores de emissão NFe/NFCe e verifiquei que as versões do SSL diferem de servidor para servidor como exibido abaixo (TLS 1.0/1.1/1.2 SSLv2, etc).

Com a mudança no arquivo processador_nfe.py na linha 171 (https://github.com/aricaldeira/PySPED/blob/master/pysped/nfe/processador_nfe.py#L171) de PROTOCOLO_TLS para PROTOCOLO_TLSv1, foi possível emitir NFe para o Sefaz SP, que utiliza TLS1.2. A pergunta é:
é possível utilizando o PROTOCOLO_TLSv1, conectar em qualquer um dos servidores de SEFAZ que utilizem versões diferentes?

Host Server: nfe.svrs.rs.gov.br

  • SSL connection using TLS1.2 / RSA_AES_128_CBC_SHA256
    =============================
    Host Server: nfe-homologacao.svrs.rs.gov.br
  • SSL connection using TLS1.2 / RSA_AES_128_CBC_SHA256
    =============================
    Host Server: www.sefazvirtual.fazenda.gov.br
  • SSL connection using TLS1.2 / ECDHE_RSA_AES_256_CBC_SHA384
    =============================
    Host Server: hom.sefazvirtual.fazenda.gov.br
  • SSL connection using TLS1.2 / ECDHE_RSA_AES_256_CBC_SHA384
    =============================
    Host Server: www.scan.fazenda.gov.br
    =============================
    Host Server: hom.nfe.fazenda.gov.br
    =============================
    Host Server: www.svc.fazenda.gov.br
  • SSL connection using TLS1.2 / ECDHE_RSA_AES_256_CBC_SHA384
    =============================
    Host Server: hom.nfe.fazenda.gov.br
  • SSL connection using TLS1.1 / ECDHE_RSA_AES_256_CBC_SHA1
    =============================
    Host Server: nfe.svrs.rs.gov.br
  • SSL connection using TLS1.2 / RSA_AES_128_CBC_SHA256
    =============================
    Host Server: nfe-homologacao.svrs.rs.gov.br
  • SSL connection using TLS1.2 / RSA_AES_128_CBC_SHA256
    =============================
    Host Server: www.nfe.fazenda.gov.br
  • SSL connection using TLS1.2 / ECDHE_RSA_AES_256_CBC_SHA384
    =============================
    Host Server: hom.nfe.fazenda.gov.br
  • SSL connection using TLS1.1 / ECDHE_RSA_AES_256_CBC_SHA1
    =============================
    Host Server: nfe.sefaz.am.gov.br
    =============================
    Host Server: homnfe.sefaz.am.gov.br
    =============================
    Host Server: nfe.sefaz.ba.gov.br
  • SSL connection using TLS1.0 / ECDHE_RSA_AES_256_CBC_SHA1
    =============================
    Host Server: hnfe.sefaz.ba.gov.br
  • SSL connection using TLS1.0 / ECDHE_RSA_AES_256_CBC_SHA1
    =============================
    Host Server: homologacao.sefaz.mt.gov.br
  • SSL connection using TLS1.2 / ECDHE_RSA_AES_128_CBC_SHA1
    =============================
    Host Server: nfe.fazenda.ms.gov.br
  • SSL connection using TLS1.2 / DHE_RSA_AES_256_GCM_SHA384
    =============================
    Host Server: homologacao.nfe.ms.gov.br
  • SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256
    =============================
    Host Server: nfe.sefaz.pe.gov.br
  • SSL connection using TLS1.0 / RSA_AES_256_CBC_SHA1
    =============================
    Host Server: nfehomolog.sefaz.pe.gov.br
  • SSL connection using TLS1.0 / RSA_AES_256_CBC_SHA1
    =============================
    Host Server: nfe.sefazrs.rs.gov.br
  • SSL connection using TLS1.2 / RSA_AES_128_CBC_SHA256
    =============================
    Host Server: nfe-homologacao.sefazrs.rs.gov.br
  • SSL connection using TLS1.2 / RSA_AES_128_CBC_SHA256
    =============================
    Host Server: nfe.fazenda.sp.gov.br
  • SSL connection using TLS1.2 / RSA_AES_128_CBC_SHA256
    =============================
    Host Server: homologacao.nfe.fazenda.sp.gov.br
  • SSL connection using TLS1.2 / ECDHE_RSA_AES_256_CBC_SHA384

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions