5
Sto costruendo uno script per accedere a un sito TCP HTTPS/TLS che richiede un certificato X.509 che ho come file .pfx.Come posso passare un certificato SSL a un server SOAP usando SOAPpy/Python
Sto usando SOAPpy 0.12.5 e Python 2.7 e ho iniziato con il codice come sotto,
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)
Se provo l'esecuzione di questo non riesce con il seguente messaggio
socket.error: [Errno 10061] No connection could be made because the target machine actively refused it
Qualsiasi sugestions come legare il certificato .pfx al SOAPproxy?
Grazie
Come hai creato il file cert e file chiave? La documentazione per il servizio SOAP che sto cercando di connettersi dice "ottenere una copia del certificato del sistema EAI. Il certificato deve essere un certificato X.509 firmato codificato utilizzando la codifica Base64 Privacy Enhanced Mail (PEM) ." – Greg
Strano, strano, perché la mia SOAPpy non ha l'oggetto 'SOAPpy.Config.SSL'? – fiatjaf
Giovanni P, prova a 'pip install -U soappy' – dvska