socket icon indicating copy to clipboard operation
socket copied to clipboard

Socket connect with certificate and passphrase

Open PNixx opened this issue 3 years ago • 1 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?

PNixx avatar Mar 24 '21 14:03 PNixx

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.

kelunik avatar Mar 24 '21 14:03 kelunik

Passphrase support has been added in https://github.com/amphp/socket/commit/fa19cb8acfb85be7476aaf7afca4ea051a80e23a.

kelunik avatar Jan 10 '23 20:01 kelunik