source: examples/example_scripts/perl/abac_keyid.pl @ f30b1e9

abac0-leakabac0-meimei-idmei-rt0-nmei_rt0tvf-new-xml
Last change on this file since f30b1e9 was 4721618, checked in by Mei <mei@…>, 12 years ago

1) tested out python and perl test scripts along with

abac_chunk_t calls in libabac's abac.hh

  • Property mode set to 100755
File size: 310 bytes
RevLine 
[4721618]1#!/usr/bin/perl
2
3use ABAC;
4
5my $filename = shift || die "Usage: abac_keyid.pl <cert.pem>\n";
6
7my $id;
8eval {
9    # will throw a RuntimeException if it can't load the cert
10    $id = ABAC::ID->new($filename);
11};
12if ($@) {
13    print "ERROR, Problem loading cert: $@";
14    exit;
15}
16
17print $id->keyid, "    OKAY\n";
Note: See TracBrowser for help on using the repository browser.