Get all files in a directory matching given extensions.
Directory to scan
Array of extensions to match (e.g., ['.pem', '.crt'])
If true, scan subdirectories recursively
Get all files in a directory matching given extensions.