This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

verify url secKey

 
battula mahesh
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


cirtificate details :
Signature Algorithm: SHA1withDSA

And this is the secKey I'm obtaining:

MTg3ZTk1ZjMyMjM3NTZhMGIwYjRlM2NlM2M5OGI3ODU=
but in the URL secKey parameter is about 500 bytes long :

MIH4BgkqhkiG9w0BBwKggeowgecCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGBxzCBxAIBATAZMA
4xDDAKBgNVBAMTA0QwMQIHIAkJASIgFTAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQE
HATAcBgkqhkiG9w0BCQUxDxcNMTAwNDA1MTE0NzA4WjAjBgkqhkiG9w0BCQQxFgQUD/O/VzHDY/E+IkIHWJG/0/JuPjgwCQYHKoZIzjgEAwQvMC0CFHfKgLxMqQ2yMdmlhBpg+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
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not clear on what you're trying to do - creating an URL that encrypts all the parameters you listed with the "secKey" key? If so, what does the second (long) secKey have to do with it?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic