diff options
-rw-r--r-- | src/cli/asn1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/asn1.cpp b/src/cli/asn1.cpp index ca8f5f89f..938871253 100644 --- a/src/cli/asn1.cpp +++ b/src/cli/asn1.cpp @@ -27,7 +27,7 @@ class ASN1_Printer final : public Command std::vector<uint8_t> contents; - if(flag_set("pem")) + if(flag_set("pem") || (input.size() > 4 && input.substr(input.size() - 4) == ".pem")) { #if defined(BOTAN_HAS_PEM_CODEC) std::string pem_label; |