An overview of the results from various searches for charged Higgs bosons (H$^{\pm}$) is presented, based on data from proton-proton collisions delivered by the CERN LHC and recorded by the CMS experiment. These include the first running period (Run 1) legacy results at a $\sqrt{s}$ = 8 TeV and corresponding to an integrated luminosity of 19.7 fb$^{-1}$, as well as the most recent results with the second running period Run 2 at $\sqrt{s}$ = 13 TeV and corresponding to an integrated luminosity of 35.9 fb$^{-1}$. Model-independent upper limits at 95% confidence level on the branching ratio and/or the production cross section times the branching ratio for various processes are summarised, for charged Higgs bosons in the mass range of 80 GeV up to 3 TeV. For the first time in CMS, the intermediate-mass range near the top quark mass is also explored. A summary of the interpretation of these exclusion limits in the context of the minimal supersymmetric standard model (MSSM) for specific benchmark scenarios is also presented.