The energization of positive ions in front of a cometary bow shock is investigated. Ions produced by ionization of the cometary neutrals interact with the solar wind protons to produce, among other waves, large amplitude oscillations of the ambient magnetic field. Such oscillations are convected towards the comet at the unperturbed solar wind speed far from the shock and at a lower speed closer to the shock (due to the solar wind mass loading) ; hence, they can energize the suprathermal ions by Fermi acceleration. The spatial extension of the acceleration region is of the order of 10 6 km and the resulting ion energy spectrum is harder than in the Earth's bow shock case. The energization of cometary ions produces an additional deceleration of the solar wind, such that the cometary bow shock of Halley-type comet may be regarded as a “cosmic ray shock”.