junlarsen / league-connect

:electric_plug: Node.js HTTP/1.1, HTTP/2.0 and WebSocket interface to the League of Legends Client APIs
https://www.npmjs.com/package/league-connect
MIT License
156 stars 24 forks source link

where is riotgames.pem? #47

Closed weituotian closed 3 years ago

weituotian commented 3 years ago
    const RIOT_GAMES_CERT = await fs.promises.readFile(path.join(__dirname, '..', 'riotgames.pem'), 'utf-8')

i am confused about riotgames.pem, where is it?

junlarsen commented 3 years ago

The riotgames.pem that the source code refers to is not in the source repository right now and is only distributed with NPM. You can get download the certificate with the npm run cert task as seen here: https://github.com/supergrecko/league-connect/blob/master/package.json#L9

I'll commit the certificate to vcs for the sake of clarity! E: 3ee96b65e004665e25ce8c60efd5fa8a95638e25