Hi,

I have the signature string from a signed SAML assertion.  I also have the 
private key file and cert file.  I'm trying to decrypt the signature string, so 
that I can try to see how it compares to the digest in the assertion.

I think that "openssl smime" should be able to do this, using something like:

openssl smime -decrypt -in mysignature.txt -inkey myrsa.key -recip myrsa.pem

but I'm not sure what the format of the mysignature.txt file should be?
When I run "openssl smime", with just the signature string in the file, I get:

Error reading S/MIME message
316:error:2107A087:PKCS7 routines:SMIME_read_PKCS7:no content type:./crypto/pkcs
7/pk7_mime.c:222:

Here's the signature string that I have:

b/UeCFZt9u6MR0w3eEJW1yczC/KQLuOG7ZjN+q76VwKxAgzl+CjHlUkT7YMu3yukroGjj2p5gkeE5057CQgQFxzBpdIdTxntWOvlkpg6eXiFhRFh41iqbWSnBOOwDskp0PXAIajYurCEbDfWILDUKu2t23z3JKr7g8dS3hxlmTA=

Can anyone tell me:

1) Should it be possible to do this using openssl?

2) What should I do with the signature string above, to put it into a file that 
I can then use "openssl smime" to decrypt the string?

Thanks,
Jim


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to