on 04-09-2010 5:17 AM
Hi,
I need some help Generating the secKey and verify url secKey .
These are the fields i'm trying to encode in the secKey.
pVersion=0046
contRep=A5
docId=DF40A8F26EFD62F1A770005056C00008
compId=data
docProt=rud
accessMode=c
authId=CN=D01
expiration=20100405134708
Content-Length: 1024
And this is the secKey I'm obtaining:
MTg3ZTk1ZjMyMjM3NTZhMGIwYjRlM2NlM2M5OGI3ODU=
but in the URL secKey parameter is about 500 bytes long :
MIH4BgkqhkiG9w0BBwKggeowgecCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGBxzC
BxAIBATAZMA4xDDAKBgNVBAMTA0QwMQIHIAkJASIgFTAJBgUrDgMCGgUAoF0wGAYJKoZIhvc
NAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTAwNDA1MTE0NzA4WjAjBgkqhkiG
9w0BCQQxFgQUD/O/VzHDY/E+IkIHWJG/0/JuPjgwCQYHKoZIzjgEAwQvMC0CFHfKgLxMqQ2yMdmlh
Bpg+4/WvM10AhUAk2APSmTb34pCkBCoEMZKdetZFrA=
how can i generate and verify the seckey
I've seen such documents as:
http://help.sap.com/saphelp_nw2004s/helpdata/en/f5/9561c8f3b111d1955b0000e82deb58/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9b/e8c192eaf811d195580000e82deb58/content.htm
Has anybody tried this? How do you verify the url?
Code and tipps welcome!!!
Please help
Thanks in advance.
Mahesh.B
Edited by: Julius Bussche on Apr 9, 2010 11:17 PM
Formatting corrected.
Hello Mahesh,
Have you found some solution?
I am following the documentation however still I can't properly validate the message from secKey.
What I have found is that the secKey contains the PKCS7 message that consists of messageDigest and some kind of message, however I am not sure whether the message from PKCS7 is same message that is used to sign URL on SAP side.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.