The invention relates to the technical field of self-service terminal safety, in particular to a transaction
encryption and identity
authentication method for a self-service
payment terminal, which comprises a
system consisting of the self-service
payment terminal, an
encryption authentication gateway, a business
server and a monitoring
server, and is used for automatically reading own hardware identification information and sending the self-service
payment terminal to the
encryption authentication gateway. Comprising a terminal data unique ID and a device
MAC address, a secret key based on the SM2 cryptographic
algorithm is generated, after the secret key is generated, the terminal sends a
certificate application request to the encryption authentication gateway, after the terminal encryption authentication gateway receives the request, identity
verification is carried out through a preset CA
certificate, a digital
certificate is signed and issued after
verification is passed, the digital certificate is fed back to the terminal, and terminal initialization is completed. And if the bidirectional authentication is passed, the encryption authentication gateway inputs a trusted device
list and establishes a
secure channel to realize identity authentication
verification of the two parties, and if the authentication fails, connection is directly refused, an abnormal log is recorded, and an abnormal reason is displayed. According to the invention, transaction encryption and identity authentication of the self-service terminal are remarkably improved.