make server save public key