A rate splitting multiple access (RSMA)-based dual-unmanned aerial vehicle (UAV) secure communication system is proposed in this paper, where one UAV is deployed to communicate with ground users, while the other UAV is dispatched to transmit the jamming signal to a ground eavesdropper. Considering the limited energy of UAV batteries, the minimum secrecy rate is maximized via optimizing RSMA precoding matrix and trajectories of UAVs under the constraint of UAV energy consumption. To address the complexity arising from coupled variables, the optimization problem is decomposed into two equivalent subproblems: precoding matrix optimization and UAV trajectory design. This decomposition is achieved using the block coordinate descent method. Next, the subproblems are transformed into convex forms by using semidefinite relaxation and successive convex approximation techniques, which are iteratively solved until convergence. Simulation results show that the secrecy performance of RSMA scheme is superior to that of the benchmark schemes, Specifically, the average secrecy rate of the RSMA scheme is approximately 22% and 10.8% higher than that of the NOMA and TDMA schemes, respectively.