A surgical instrument having a long shaft comprises, in the shaft, a sealing element produced by primary shaping at the installation location. The sealing element is produced such that any actuating mechanisms are installed and held in place in the shaft and then a curable plastic material is injected into the shaft such that the material encloses the actuating element along a length that is greater than the inside diameter and smaller than its length.