server: support key type