phingofficial/phing — pull request #82 by alexmace (2012-02-03 17:18:04+00:00)
Title: OpenSSL Signing Support in PharPackageTask

We use Phing for building all of our applications and want start deploying them as Phar archives signed with an OpenSSL private key, but the PharPackageTask did not support this, so I've patched it to do it.

Two new attributes have been added: "key" and "keypassword".

Key points to the private key to be used to sign the Phar, while key password is the password set on the key, if needed.

Tested locally and all seems to work. I've tried to stick to the conventions present in the file already, although I tend to comment things a little more than the rest of the file. Let me know if you have any changes required before this can be merged in.