]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/peertube-crypto.ts
Use RsaSignature2017
[github/Chocobozzz/PeerTube.git] / server / helpers / peertube-crypto.ts
index a0c9112b9c44fb04653a6ff7c11cbb9010c91910..313c12e26fe07f78b1bca2db159602037fdcb05d 100644 (file)
@@ -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)