Skip to content

Commit

Permalink
[keyserver] output keyserver's signing ed25519 public key
Browse files Browse the repository at this point in the history
Summary:
this script will be run on ashoat's keyserver to get the signing ed25519 public key.
we'll then run the identity service in prod with this key set in an env var so that we can verify messages signed by ashoat's keyserver.

Test Plan: ran the script locally and saw my public key printed to the console

Reviewers: ashoat

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D8448
  • Loading branch information
vdhanan committed Jul 9, 2023
1 parent d738d92 commit f00210e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions keyserver/src/scripts/get-keyserver-public-key.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// @flow

import { fetchOlmAccount } from '../updaters/olm-account-updater.js';

// Outputs the keyserver's signing ed25519 public key
async function main() {
const info = await fetchOlmAccount('content');
console.log(JSON.parse(info.account.identity_keys()).ed25519);
}

main();

0 comments on commit f00210e

Please sign in to comment.