save public key during post.