Fix generate ca cert in user