made signing task more generic
Merge pull request #728 from AbrarSyed/patch-1

made signing task more generic