From 1905ff743aa1061579d2719d4927b6f808db211d Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Tue, 26 Sep 2017 21:26:05 +0200 Subject: [PATCH] mconnectctl: display device certificate Display device certificate when running show-device in verbose mode. To introspect the certificate run the following: mconnectctl show-device --verbose /org/mconnect/device/0 | \ certtool -i --- src/mconnectctl/main.vala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mconnectctl/main.vala b/src/mconnectctl/main.vala index 1f7d013..104c35d 100644 --- a/src/mconnectctl/main.vala +++ b/src/mconnectctl/main.vala @@ -43,6 +43,7 @@ namespace Mconnect { public abstract bool is_connected { owned get;} public abstract string[] outgoing_capabilities { owned get;} public abstract string[] incoming_capabilities { owned get;} + public abstract string certificate { owned get;} } public class Client { @@ -226,6 +227,7 @@ namespace Mconnect { print_sorted_caps(dp.outgoing_capabilities, " %s\n"); stdout.printf(" Capabilities (in):\n"); print_sorted_caps(dp.incoming_capabilities, " %s\n"); + stdout.printf(" Certificate:\n%s\n", dp.certificate); } return 0; });