<div dir="ltr">Hi there,<div><br></div><div>
I have a proxy (PHP file) which I want it to work as a server for me. I have PhantomJS as my client which loads particular url and instead of sending its requests to the main server it will send them to my proxy. I am going to send it back its responses. I have no problem when the website is based on HTTP. But, since my proxy cannot deal with SSL, I have problem with HTTPS websites. </div>
<div><br></div><div>Actually, I have a database contains all the requests and responses which I captured by Fiddler. I use this database when I want to send a response to PhantomJS.</div><div>Now, I cannot fill out my database since I cannot capture completely decrypted traffic using none of existing tools. Also I need to receive decrypted request from PhantomJS!</div>
<div><br></div><div>Therefore, I decided to use stunnel for solving my problem. I am going to use it in order to decrypt all the requests from PhantomJS, and then, send them to my proxy, and also encrypt all my responses, before sending back to PhantomJS. I have installed latest version of stunnel on my Ubuntu machine and have generated a config file. I could not solve my problem using stunnel so far and my question is:<br>
</div><div><br></div><div>Can stunnel solve my problem? I mean, can I use stunnel in order to decrypt PhantomJS's requests and encrypt my responses? ...</div><div><br></div><div>If yes, could you please tell me how?</div>
<div><br></div><div>Thank you so much and I am eagerly waiting to receive your response.</div><div><br></div><div>Thanks in advance,</div><div>Best regards,</div><div>Sara</div></div>