Socket connect with certificate and passphrase
PNixx opened this issue · comments
Sergey Odintsov commented
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?
Niklas Keller commented
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.
Niklas Keller commented
Passphrase support has been added in fa19cb8.