wrote the method that calls the Diffie-Hellman key agreement and generates the unlock keys for the server