Try a different way to generate signature.

Using OpenSSL is the preferred way.

Also display some intermediate results.