1. Remove public key DER header. 2. Use SHA1/BASE64 to encode public key.