[
https://issues.apache.org/jira/browse/TIKA-2856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16821812#comment-16821812
]
Roberto Benedetti commented on TIKA-2856:
-----------------------------------------
A digest file has no specific MIME type (see [RFC
5751|https://tools.ietf.org/html/rfc5751]). As per TIKA-1997 currently Tika
only reports {{application/pkcs7-signature}} when inspecting content (i.e. not
using file extension). I think {{application/pkcs7-mime}} is what you could
expect from a digest file.
> Cannot detect digest PKCS7 file
> -------------------------------
>
> Key: TIKA-2856
> URL: https://issues.apache.org/jira/browse/TIKA-2856
> Project: Tika
> Issue Type: Bug
> Components: detector
> Affects Versions: 1.20
> Reporter: Chinh Nguyen
> Priority: Minor
>
> * Create a digest file. For example, {{echo "hello world" | openssl cms
> -digest_create -md sha256 -outform der -out digest.p7}}
> * Try to detect with tika {{java -jar tika-app-1.20.jar -d digest.p7}}
> * It will be reported as application/octet-stream
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)