aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples/x509print.cpp
blob: 88e1dfbaa5ea0d62bf0da06c2b73caf0f60016d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "examples.h"
#include <botan/x509cert.h>

int x509_example(int argc, char* argv[])
   {
   if(argc < 1)
      {
      std::cout << "Usage: " << argv[0] << " cert.pem\n";
      return 1;
      }

   X509_Certificate cert(argv[1]);

   std::cout << cert.to_string() << "\n";

   return 0;
   }