A method for producing a temperature control means (5c, 5c) of an elastic heating profile (1), which heat and/or cool a medical instrument inserted into a cavity (3) of the heating profile (1), are provided in bores (4a, 4b, 4c, . . . ) having a bore diameter (110, 110′) which is smaller than the outer diameter (120, 120′) of the temperature control means (5c, 5e) to be inserted into the bores (4a, 4b, 4c, . . . ). A positive and/or non-positive connection between the heating profile (1) and the received temperature control means ensures good thermal contact. The production costs for an operable heating profile or temperature control means are also reduced.