With the rapid development of the energy internet, the transaction of distributed renewable energy (DRE) is playing an increasingly important role in the energy market. However, in the transaction model of distributed renewable energy combined with public blockchain technology, nodes in the trading network can join or leave the network at any time without any permission, which hinders the regulation of electricity institutions. Corresponding to the transaction principle, a distributed renewable energy transaction authentication mechanism based on consortium blockchain is proposed in this paper. First, certificate authority nodes were set in the transaction network to provide nodes with access authority by controlling the public keys and private keys of trading participants so that they can complete their identity authentication. Next, essential chaincodes in the transaction authentication were designed and deployed on a Hyperledger Fabric blockchain site, and a simulation experiment of a simple DRE transaction was used to elaborate the details on the transaction process. Finally, the proposed model was evaluated according to its performance and proved to be practical and effective.