In the process of cadre education and training,the traditional training certificate information collection,production,verification and distribution efficiency is low,the error rate is high,and the cost is high.This paper proposes a generating method and system of electronic certificate for cadre training,which obtains student data through the registration system,completes data integration through WebAPI interface,and conducts facial recognition algorithm error correction pre-processing for electronic photos in existing electronic certificates.It further encrypts the electronic certificate to generate a PDF file,and publishes it to the student terminal.Certificate authentication is an inverse data encryption operation,which can verify the authenticity of the certificate and solve a series of technical problems such as classification,checking,verification and archiving of cadre training certificates thoroughly.