Make server authentication working again.

- use PEM format again.
- use saver sha1 hash function for signing.