Re: Payload-checksum in PEM?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> On Mar 8, 2018, at 11:52 AM, etc@xxxxxxxxxxxxxx wrote:
> 
> I have a certificate (cer.txt; content is enclosed with ---BEGIN/END CERTIFICATE---).
> I can get the public-key out of that. (pubkey.txt; content is enclosed ---BEGIN/END PUBLIC KEY---).
> I have the PEM (pem.txt; content is enclosed with ---BEGIN/END CMS---).

That's a CMS message, it may contains a signature, but it is not (just) a signature.

> This is what I call the signature and I would expect to have a hash of my original file somewhere inside of it.

See above.

> If I do
> 
> openssl rsautl -pubin -raw -encrypt -inkey pubkey.txt -in pem.txt

The raw RSA signed payload is not textual PEM data, it is a binary element of
the CMS structure (when the structure contains a signature).

-- 
	Viktor.

-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux