Method for producing a diode laser, comprising the following steps: a. providing at least one laser bar having multiple emitters, which has on a first side a first contact area, which is formed as at least one p contact, and on a second side opposite from the first side, the substrate side of the laser bar, a second contact area, which is formed as at least one n contact, b. providing a heat conducting body having a first terminal area, c. providing a cover having a second terminal area, d. providing a first metallic layer, wherein the first metallic layer has a uniform layer thickness, e. providing a second metallic layer as a nubbed structure, which has multiple raised locations and multiple depressed locations in a sectional plane, wherein, with respect to the raised locations, the second metallic layer is made thicker than the first metallic layer, wherein the second metallic layer comprises indium, and wherein the nubbed structure has a coverage density with at least one nub per square millimetre of area of the layer, f. arranging the laser bar between the heat conducting body and the cover, the first contact area facing the first terminal area of the heat conducting body and the second contact area facing the second terminal area of the cover, and during arrangement of the laser bar the first metallic layer being arranged at least in certain portions between the first terminal area and the first contact area and the second metallic layer being arranged at least in certain portions between the second terminal area and the second contact area, g. producing at least one force, which has a component that presses the cover in the direction of the heat conducting body, the first contact area being pressed flat against the first terminal area under the effect of the force, the second metallic layer undergoing a plastic deformation at least in certain portions in the region of the raised locations, h. establishing a mechanical connection of the cover with respect to the heat conducting body. a. providing at least one laser bar having multiple emitters, which has on a first side a first contact area, which is formed as at least one p contact, and on a second side opposite from the first side, the substrate side of the laser bar, a second contact area, which is formed as at least one n contact, b. providing a heat conducting body having a first terminal area, c. providing a cover having a second terminal area, d. providing a first metallic layer, wherein the first metallic layer has a uniform layer thickness, e. providing a second metallic layer as a nubbed structure, which has multiple raised locations and multiple depressed locations in a sectional plane, wherein, with respect to the raised locations, the second metallic layer is made thicker than the first metallic layer, wherein the second metallic layer comprises indium, and wherein the nubbed structure has a coverage density with at least one nub per square millimetre of area of the layer, f. arranging the laser bar between the heat conducting body and the cover, the first contact area facing the first terminal area of the heat conducting body and the second contact area facing the second terminal area of the cover, and during arrangement of the laser bar the first metallic layer being arranged at least in certain portions between the first terminal area and the first contact area and the second metallic layer being arranged at least in certain portions between the second terminal area and the second contact area, g. producing at least one force, which has a component that presses the cover in the direction of the heat conducting body, the first contact area being pressed flat against the first terminal area under the effect of the force, the second metallic layer undergoing a plastic deformation at least in certain portions in the region of the raised locations, h. establishing a mechanical connection of the cover with respect to the heat conducting body.