A surgical instrument, such as an endoscope, having a hermetically sealed housing for accommodating, optical and/or electrical devices therein. The housing having a wall with a via provided in the wall to electrically connect an electrical contact formed on the inside of the wall with an electrical contact formed on the outside of the wall, wherein the via has a penetration in the wall, and the penetration is filled with a filling material to form a hermetically sealed housing, wherein the electrical contacts are formed as at least one electrically conductive conductor path on the inside of the wall and on the outside of the wall, wherein one conductor path on the inside of the wall, and one conductor path on the outside of the housing are connected to each other by means of the via, and wherein the filling material of the via consists of metal or solder.