# Mender-artifact validate error

**URL:** <https://hub.mender.io/t/mender-artifact-validate-error/876>\
**Category:** General Discussions\
**Tags:** mender-artifact\
**Created:** [July 31, 2019, 3:10pm UTC](https://hub.mender.io/t/mender-artifact-validate-error/876 "2019-07-31T15:10:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidsasa](https://avatars.discourse-cdn.com/v4/letter/d/45deac/32.png) [@davidsasa](https://hub.mender.io/u/davidsasa)\
**Post date:** [July 31, 2019, 3:10pm UTC](https://hub.mender.io/t/mender-artifact-validate-error/876/1 "2019-07-31T15:10:11Z")

</div>

After compiling mender-artifact from source for Linux and Windows, I noticed that I cannot validate a signed image using the Windows binary. From what I can tell this is related to the use of “archive/tar” and how paths are handled between operating systems.

Behavior in Windows  
get-wmiobject -class win32\_operatingsystem

SystemDirectory : C:\WINDOWS\system32  
Organization : $COMAPANY  
BuildNumber : 17763  
RegisteredUser : $COMPANY  
SerialNumber : $SERIAL  
Version : 10.0.17763

PS C:\path\mender-artifact-windows.exe --version  
mender-artifact version 62d044b  
PS C:\path\mender-artifact-windows.exe validate -k .\pub.key .\signed.mender  
reader: error getting header Payload number: can not get Payload order from tar path

Behavior in Ubuntu 16.04 x64  
$uname -a  
Linux $MACHINE 4.4.0-17763-Microsoft #379-Microsoft Wed Mar 06 19:16:00 PST 2019 x86\_64 x86\_64 x86\_64 GNU/Linux

$ ./mender-artifact --version  
mender-artifact version 62d044b

$ ./mender-artifact validate -k /mnt/c/path/pub.key /mnt/c/path/signed.mender  
Artifact file ‘/mnt/c/path/signed.mender’ validated successfully

---

<div class="post-metadata">

**Author:** ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)\
**Post date:** [August 1, 2019, 7:17am UTC](https://hub.mender.io/t/mender-artifact-validate-error/876/2 "2019-08-01T07:17:52Z")

</div>

Interesting. Currently the `mender-artifact` binary is only validated (tested) for macOS and linux. I don’t currently have the time, or a VM with windows available to look at this, but PR’s are always welcome 😉
