lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Olá, 

Alguém já teve sucesso usando LuaSec para conexões HTTPS externas? 
Estou tentando acessar um serviço seguro do Google mas recebe sempre a 
mensagem "wrong version number", o código segue abaixo: 

local https = require("ssl.https") 
local one, code, headers, status = https.request { 
 url = "" target="_blank" rel="nofollow" href="http://www.google.com/url?sa=D&q=https://www.google.com/accounts/ServiceLogin&usg=AFQjCNFMOAoa-8bFLXnIq8QK5CI-EJK2aw" style="color: rgb(0, 0, 204); ">https://www.google.com/accounts/ServiceLogin", 
 protocol = "sslv3", 
 options = "all", 
 verify = "none", 

} 

print(one) 
print(code) 

Já tentei as versões sslv23 e tlsv1, sem sucesso também. 

Devo ter o certificado instalado na máquina para especificá-lo na 
conexão? 

Se alguém tiver alguma idéia será bem vinda.