Issue while signing CE .ma file using rsign.exe (v03.21.02)

As per request, here I'm posting my question as a new one.

Previously using this thread, I'm successfully signed the CE .ma file using  rsign.exe which downloaded from here

I can successfully sign the .ma file using rsign.exe and Verified the digital signature using rdump.exe, see below:

command: 

rdump.exe -t'dsig' sample.ma

output:

Microstation Resource File Dump Utility 03.19.02

Digital signatures
signer="user", alg=sha1, verified=yes
sha1="my thumbprint"
CN="my Corporation"
signed="1970/01/01 05:30:00"
location="my machine name"

1) One thing I observed is, the signed timestamp is not displaying the correct date, always displaying the same date 1970/01/01 05:30:00,

Is it a bug or did I done anything wrong?

2) Is there any way to change the Signer name from individual user name to corporation name?

Thanks,

Kalyani

Parents
  • Hi ,

    Thank you for bringing this to my attention.  I too am seeing similar behavior in the latest internal builds of the MSCE SDK and tools per my output below that specifies rsign.exe should utilize todays date (--D) and sets the signature signed date using local time relative to the Unix Epoch (1/1/1970).

    I filed Defect 1125569 so this can be reviewed and fixed in an upcoming release of the MSCE SDK and/or SDK Previews update.

    [== Digitally Signing C:\PROGRA~1\Bentley\MICROS~2\MICROS~1\mdlapps\Test.ma ==]
    rsign --iKNDLC -cn "Bentley Developer Support" C:\PROGRA~1\Bentley\MICROS~2\MICROS~1\mdlapps\Test.ma
    Microstation Resource File Signing Utility 03.21.02
    Tue Mar 23 15:15:17 2021, elapsed time: 0:05
    
    C:\PROGRA~1\Bentley\MICROS~2\MICROS~1\Mdlapps>checksignature --ll Test.ma
    Microstation Signature Checking Utility 03.21.02
    Test.ma :  signer="Robert.Hook", alg=sha1, verified=yes
            sha1="48E8 76B6 B51A C5AE 76E6 C6DC 9AC1 3817 D9A7 69D2"
            CN="Bentley Developer Support"
            signed="1969/12/31 19:00:00"
            location="NAOU19135"
    Test.ma : All signatures verified.
    
    C:\PROGRA~1\Bentley\MICROS~2\MICROS~1\Mdlapps>

    Thank you,
    Bob



Reply
  • Hi ,

    Thank you for bringing this to my attention.  I too am seeing similar behavior in the latest internal builds of the MSCE SDK and tools per my output below that specifies rsign.exe should utilize todays date (--D) and sets the signature signed date using local time relative to the Unix Epoch (1/1/1970).

    I filed Defect 1125569 so this can be reviewed and fixed in an upcoming release of the MSCE SDK and/or SDK Previews update.

    [== Digitally Signing C:\PROGRA~1\Bentley\MICROS~2\MICROS~1\mdlapps\Test.ma ==]
    rsign --iKNDLC -cn "Bentley Developer Support" C:\PROGRA~1\Bentley\MICROS~2\MICROS~1\mdlapps\Test.ma
    Microstation Resource File Signing Utility 03.21.02
    Tue Mar 23 15:15:17 2021, elapsed time: 0:05
    
    C:\PROGRA~1\Bentley\MICROS~2\MICROS~1\Mdlapps>checksignature --ll Test.ma
    Microstation Signature Checking Utility 03.21.02
    Test.ma :  signer="Robert.Hook", alg=sha1, verified=yes
            sha1="48E8 76B6 B51A C5AE 76E6 C6DC 9AC1 3817 D9A7 69D2"
            CN="Bentley Developer Support"
            signed="1969/12/31 19:00:00"
            location="NAOU19135"
    Test.ma : All signatures verified.
    
    C:\PROGRA~1\Bentley\MICROS~2\MICROS~1\Mdlapps>

    Thank you,
    Bob



Children
No Data