From 1682cbe81fad97b37c02c5b136f9dcffac2cb062 Mon Sep 17 00:00:00 2001 From: Yvan Date: Tue, 4 Feb 2025 02:43:03 +0000 Subject: [PATCH] show the bot public key pem on the bot view page --- .../src/main/java/dev/activitypub/activitypubbot/Bot.java | 2 +- .../activitypubbot/src/main/resources/templates/viewbot.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Java/Spring/activitypubbot/src/main/java/dev/activitypub/activitypubbot/Bot.java b/Java/Spring/activitypubbot/src/main/java/dev/activitypub/activitypubbot/Bot.java index d4056fc..ca5b289 100644 --- a/Java/Spring/activitypubbot/src/main/java/dev/activitypub/activitypubbot/Bot.java +++ b/Java/Spring/activitypubbot/src/main/java/dev/activitypub/activitypubbot/Bot.java @@ -43,7 +43,7 @@ public class Bot { * ActivityPub key JSON. * "-----BEGIN PUBLIC KEY-----\\nMI [...] AB\\n-----END PUBLIC KEY-----" */ - String getPublicKeyPEMString() { + public String getPublicKeyPEMString() { // Note: for performance it could be worth storing this in the db, or caching it in some way PublicKey pk = keyPair.getPublic(); StringWriter w = new StringWriter(); diff --git a/Java/Spring/activitypubbot/src/main/resources/templates/viewbot.html b/Java/Spring/activitypubbot/src/main/resources/templates/viewbot.html index e7c775c..595ce4b 100644 --- a/Java/Spring/activitypubbot/src/main/resources/templates/viewbot.html +++ b/Java/Spring/activitypubbot/src/main/resources/templates/viewbot.html @@ -21,6 +21,7 @@ Description:
Published:
Type:
+ Public Key:


HOME | Bot List