Production of fastenings