Browse Source

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
bboozzoo/tls-support
Maciek Borzecki 7 years ago
parent
commit
1905ff743a
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/mconnectctl/main.vala

+ 2
- 0
src/mconnectctl/main.vala View File

@ -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;
});


Loading…
Cancel
Save