distribute key to server