Although the optical access network based on industrial IoT can provide large connections and high bandwidth for smart factory construction, it still lacks an effective guarantee in information security transmission and control and is difficult to cope with new challenges such as accelerated penetration of security threats and complex and diverse attack methods. To ensure the secure authentication transmission of the devices connected to the optical access network in the smart factory, an automated assembly line with a trusted chain of ”host computer - trusted security controller” in the industrial IoT scenario is designed, the core of which is a trusted industrial controller with both a host system and a trusted subsystem, in which the trusted subsystem is encapsulated with self-designed SHA-2 based bi-directional verification integrity metric algorithm, which dynamically measures the integrity of system firmware and project files, and has active control logic to control the start-up behavior of the host system based on the integrity metric results while using a digital signature to transfer the trusted chain to the host computer. We have verified the cold start time, integrity metric rate, and attack resistance of the trusted industrial controller, and the experiments show that the controller has better usability with a cold start time of fewer than 60 seconds, integrity metric rate >1MB/S, and better attack resistance than the non-trusted controller.