For thin-film silicon solar cells, light trapping schemes are of uppermost importance to harvest all available sunlight. Typically, superstrates with randomly textured TCO front layers are used to scatter the light diffusively in pin-cells on glass. Here, we investigate methods to texture opaque substrates with both random and periodic textures, for use in nip-cells on metal foil. We applied an electrically insulating SiOx-polymer coating on a stainless steel substrate, and textured this barrier layer by nanoimprint. On this barrier layer the back contact is deposited for further use in the solar cell stack. Replication of masters with various random and periodic sub-micron patterns was tested, and, using scanning electron microscopy, replicas were found to compare well with the originals. The embossing of the barrier layer does not diminish its electrically isolating properties, and thus adds extra functionality to this layer. Masters with U-grooves of various sub-micrometer widths have been used to investigate the optimal dimensions of regular patterns for light trapping in the silicon layers. Angular reflection distributions were measured to evaluate the light scattering properties of both periodic and random patterns. These periodic patterns, comprising diffraction gratings, show promising results in scattering the light to specific angles, enhancing the total internal reflection in the solar cell.