5
Estoy creando un script para acceder a un sitio HTTPS/TLS TCP que requiere un certificado X.509 que tengo como un archivo .pfx.¿Cómo puedo pasar un certificado SSL a un servidor SOAP utilizando SOAPpy/Python?
estoy usando SOAPpy 0.12.5 y Python 2.7 y han comenzado descuento con el código de la siguiente manera,
import SOAPpy
url = "192.168.0.1:5001"
server = SOAPpy.SOAPProxy(url)
# I think I need to pass the cert to server here...
server.callSoapRPC(xxxx)
Si trato de ejecutar esta falla con el siguiente mensaje
socket.error: [Errno 10061] No connection could be made because the target machine actively refused it
Cualquier sugerencias cómo vincular el certificado .pfx al SOAPproxy?
Gracias
¿Cómo creó el archivo cert y archivo de la clave? La documentación del servicio SOAP al que estoy tratando de conectar dice "obtenga una copia del certificado del sistema EAI. El certificado debe ser un certificado firmado X.509 codificado usando Privacy Enhanced Mail (PEM) codificación Base64." – Greg
Extraño, raro, ¿por qué mi SOAPpy no tiene el objeto 'SOAPpy.Config.SSL'? – fiatjaf
Giovanni P, intente con 'pip install -U soappy' – dvska