server and client fetch their keys.