diff --git a/roca/detect.py b/roca/detect.py
index <HASH>..<HASH> 100644
--- a/roca/detect.py
+++ b/roca/detect.py
@@ -664,7 +664,14 @@ class RocaFingerprinter(object):
 
         for fname in files:
             if fname == '-':
-                fh = sys.stdin
+                if self.args.base64stdin:
+                    for line in sys.stdin:
+                        data = base64.b64decode(line)
+                        ret.append(self.process_file(data, fname))
+
+                    continue
+                else:
+                    fh = sys.stdin
 
             elif fname.endswith('.tar') or fname.endswith('.tar.gz'):
                 sub = self.process_tar(fname)
@@ -1713,6 +1720,9 @@ class RocaFingerprinter(object):
         parser.add_argument('--indent', dest='indent', default=False, action='store_const', const=True,
                             help='Indent the dump')
 
+        parser.add_argument('--base64-stdin', dest='base64stdin', default=False, action='store_const', const=True,
+                            help='Decode STDIN as base64')
+
         parser.add_argument('--file-pem', dest='file_pem', default=False, action='store_const', const=True,
                             help='Force read as PEM encoded file')
Support reading cert/key data from stdin as base<I>

This makes processing large quantities of certificates quicker by
enabling the use of tools like parallel