for /f %%i in ('dir *.pem /b') do ( c:\OpenSSL\bin\openssl x509 -in %%i -inform PEM -text >> debug.txt )