Added support for generating and then encrypting the PGP key on the server.