fixed the bug that the CA client may return incorrect CA certificate. fixed the bug that no CA certificate will be returned even if this feature is activated