feature request: support for use of passphrase along certificate

21 views
Skip to first unread message

ciki

unread,
Sep 30, 2011, 3:41:48 PM9/30/11
to apns-php
Hi,

I wonder if support for certificates encrypted with passphrase could
be added to library.

All what is needed is adding a member $certificatePassphrase to
ApnsPHP_Abstract class which could be optionally set in constructor as
3rd argument and in method _connect() just test for its existence and
add it to stream options like this
if (!empty($this->certificatePassphrase)) {
stream_context_set_option($streamContext, 'ssl', 'passphrase',
$this->certificatePassphrase);
}
Reply all
Reply to author
Forward
0 new messages