security: Added initial implementation of signByCertificate.
tests: Always use ptr_lib::shared_ptr<Data> so we can verify.