X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=server%2Fhelpers%2Fpeertube-crypto.ts;h=313c12e26fe07f78b1bca2db159602037fdcb05d;hb=53ac1448f073a5db69f934550404c6997822501e;hp=a0c9112b9c44fb04653a6ff7c11cbb9010c91910;hpb=50d6de9c286abcb34ff4234d56d9cbb803db7665;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/peertube-crypto.ts b/server/helpers/peertube-crypto.ts index a0c9112b9..313c12e26 100644 --- a/server/helpers/peertube-crypto.ts +++ b/server/helpers/peertube-crypto.ts @@ -43,7 +43,8 @@ function isSignatureVerified (fromActor: ActorModel, signedDocument: object) { function signObject (byActor: ActorModel, data: any) { const options = { privateKeyPem: byActor.privateKey, - creator: byActor.url + creator: byActor.url, + algorithm: 'RsaSignature2017' } return jsig.promises.sign(data, options)