amphp / socket

Non-blocking socket and TLS functionality for PHP based on Amp.

Home Page:https://amphp.org/socket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Socket connect with certificate and passphrase

PNixx opened this issue · comments

I need connect to ssl://gateway.sandbox.push.apple.com:2195 with certificate and passphrase. Example: https://gist.github.com/marchbold/393bd1b7828e30178899. How I can do it?

https://github.com/amphp/socket/blob/6f65724311f47932f54e2f96f3313445c8de57a1/src/ClientTlsContext.php is what you're looking for. It looks like it needs an extension to support a passphrase.

Passphrase support has been added in fa19cb8.