Update test certificate

This commit is contained in:
MoyuScript
2013-09-06 23:11:04 +03:00
parent 41944f4e02
commit d0dc0d63c3
4 changed files with 50 additions and 4 deletions

View File

@ -352,7 +352,7 @@
"exp": ~~(new Date().getTime() / 1000) + (30 * 60),
"iat": ~~(new Date().getTime() / 1000 - 60)
},
key = new Buffer(process.env.SERVICE_ACCOUNT, 'base64').toString('ascii'),
key = require('fs').readFileSync('tests/certificate.pem', 'utf8'),
transporterTokenRequest = {
method: 'POST',
uri: 'https://accounts.google.com/o/oauth2/token',