diff options
author | lloyd <[email protected]> | 2014-01-01 23:32:24 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-01-01 23:32:24 +0000 |
commit | 7323f3ff83ff2199b1090f9d5f729b08ccac3151 (patch) | |
tree | 84edcf72e8837ac328aae505f5059c95f4e459a5 /src/apps/x509print.cpp | |
parent | 0c7008498790caea563ed3601df1943f8f7b6269 (diff) |
Move base64, bzip, ca, and tls examples
Diffstat (limited to 'src/apps/x509print.cpp')
-rw-r--r-- | src/apps/x509print.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/apps/x509print.cpp b/src/apps/x509print.cpp new file mode 100644 index 000000000..c79ae7a6b --- /dev/null +++ b/src/apps/x509print.cpp @@ -0,0 +1,17 @@ +#include "apps.h" +#include <botan/x509cert.h> + +int x509(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; + } |