Hi all,
I’m trying to connect via ssl and send a signed xml to a webservice.
I’ve tried use savon:
##################################################
client = Savon.client(
wsdl:
‘https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico2?wsdl’,
ssl_version: :SSLv3,
ssl_verify_mode: :none,
ssl_cert_file: ‘certificate_file.crt’,
ssl_cert_key_file: ‘private_key.pem’,
ssl_cert_key_password: ‘’
)
p client.operations
##################################################
and i’ve stopped in this error:
net_http.rb:54:in `rescue in request’: SSL_CTX_use_PrivateKey: key
values mismatch (HTTPI::SSLError).
Any ideia?
There are another way to solve it?
Thanks.