AP Actorの鍵とkeyIdのフォーマットの変更 (#5733)

* Node PKCS#8

* keyIdを#main-key形式に
This commit is contained in:
MeiMei
2020-01-20 04:51:44 +09:00
committed by syuilo
parent 5a950cf991
commit 46aaf8fa9a
4 changed files with 14 additions and 10 deletions

View File

@@ -56,7 +56,7 @@ export default async (user: ILocalUser, url: string, object: any) => {
sign(req, {
authorizationHeaderName: 'Signature',
key: keypair.privateKey,
keyId: `${config.url}/users/${user.id}/publickey`,
keyId: `${config.url}/users/${user.id}#main-key`,
headers: ['date', 'host', 'digest']
});