Revert "Merge pull request #126 from jish/josh/sign_with_x509"

This reverts commit 0e19590e8c54d66cde06a7789254192ccda12dba, reversing
changes made to eb8937eea23e344e3c6ef32f21b89a8af41176c1.