I want to detect the file type of the given file using Apache tika. Not only with the file name, but It should also check the content-based and return the file type. I used "tika.detect(stream)" It is working fine for text, image, XML files. Now I want to detect the certificate files using Tika. But content based file type detection is not working for certificate files(X509, .pem, .der etc)
Thanks in advance