[ 
https://issues.apache.org/jira/browse/TIKA-2856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16821481#comment-16821481
 ] 

Chinh Nguyen commented on TIKA-2856:
------------------------------------

Looks like you're right. A digest file created with {{openssl cms -data_create 
-md sha256 -outform der -out digest.p7 -binary -in 
/usr/lib/x86_64-linux-gnu/libc.a}} has the correct pcks7 format.

However, I don't know if {{application/pkcs7-signature}} makes sense as there 
is no signature inside. In any case, I don't know how many different pkcs7 
types tika reports.

> 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)

Reply via email to