As a revolutionizing technology, intelligent reflecting surfaces (IRS) are expected to enhance the physical layer security (PLS) by constructing a controllable wireless environment. In this paper, we consider an IRS-aided visible light communication (VLC) system with a legitimate user and a malicious eavesdropper, in which the IRS is implemented by an intelligent rotatable mirror array. Our objective is to provide a desired optical reflecting environment with enriched spatial degrees of freedom by jointly optimizing the rotation angles of arrayed mirrors. First, from the perspective of information theory, we derive the achievable secrecy rate for the IRS-aided VLC system. Then, we formulate an achievable secrecy rate maximization problem with the orientations of mirror elements as optimization variables. Since the effect of mirror elements’ orientations on the IRS channel gain makes the formulated problem hard to solve, we propose a reflected spot search (RSS) method to transform the original problem into one with reduced dimension of optimization variables. Besides, bearing in mind that the VLC system has the dual task of communication and illumination, we define and analyze the illumination uniformity of the IRS-aided secure VLC system. Our simulation results show that by utilizing the proposed method, the VLC system can achieve significant secrecy enhancement, especially when the eavesdropper is close to the legitimate user.