From b835d8b7e5f4a39a5d4d38f42ae260720babc7b8 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 1 Nov 2018 11:17:10 +0300 Subject: log current public key --- juick-server/src/main/java/com/juick/server/SignatureManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/juick-server/src/main/java/com/juick/server/SignatureManager.java b/juick-server/src/main/java/com/juick/server/SignatureManager.java index 8e93846f..46ffc565 100644 --- a/juick-server/src/main/java/com/juick/server/SignatureManager.java +++ b/juick-server/src/main/java/com/juick/server/SignatureManager.java @@ -64,6 +64,7 @@ public class SignatureManager { //boolean valid = verifySignature(Signature.fromString(requestHeaders.getFirst("Signature")), // keystoreManager.getPublicKey(), "POST", inbox.getPath(), headers); logger.info("Sending context: {}", jsonMapper.writeValueAsString(data)); + logger.info("Public key: {}", keystoreManager.getPublicKeyPem()); try { ResponseEntity response = apClient.postForEntity(inbox, request, Void.class); logger.info("accepted follower: {}", response.getStatusCodeValue()); -- cgit v1.2.3