In the final step of making the nitro complex it involves the addtion of concentrated HCl. What are the role(s) of the HCl in this step of the synthesis?

nitro complex: [Co(NH3)5(NO2)]Cl2

I would need the procedure used to hazard a guess.