Allow add any certificate
A quick hack to fix a bug in extracting certificate data from PEM format.
Fix the bugs in encoding data packet (it should be signed_buf() and signed_size(), instead of buf() and size() for SignedBlob)