Click to See Complete Forum and Search --> : HTTPWEBREQUEST and Standard IETF 3161
Sara78
March 17th, 2006, 09:18 AM
Hi...you have any idea How I can generate a Token Request using standard IETF 3161 (Standard Internet X 509)???
I have to create an HttpWebRequest to access to an https service that post me some information.
The parameters of post URL must be write in this mode:
tsreq=[Token_Request_base64 encoded]&UserName=[...]&Password=[...]
You can help me??
Thanks
Sara
NoHero
March 20th, 2006, 03:30 AM
What is this standard? Is it this one (http://www.digistamp.com/reference/rfc3161.htm)? What exactly are you looking for? Base64 encoding?
Sara78
March 20th, 2006, 06:09 AM
Yes, it is.
I have to send an Http request to a TSA service that get me a timestamping.
The url parameters are:
tsreq=[TokenRequest in base 64 encoded]&username=[Userrname in base 64 encoded]
and timestamping request must be write with the standard IETF3161 (token request).
My problem is the token request. :(
Thanks
Sara
NoHero
March 20th, 2006, 11:23 AM
You can still use the OpenTSA: A free, stable and secure TSA implementation: http://www.opentsa.org/
And if you have to write it on your own: OpenTSA is OpenSource ;)
Sara78
March 21st, 2006, 03:53 AM
Hi, thanks for your reply.
But If I want to use class HttpWebRequest to send my request to TSA. And the request format is:
tsreq=....&username=....&password=.....
Is it possible??
I want to use class HttpWebRequest because if I have a proxy..it is possible to set it.
Unfortunatly I don't know what it is a Token Request with standard RFC3161.
I thinked that the token request with standard RFC3161 is a particular format of request...for example I convert int to string at the same time I convert string to standard RFC3161. :(
Thanks
Sara
NoHero
March 21st, 2006, 06:41 AM
Of course you can. The following:
tsreq=[Token_Request_base64 encoded]&UserName=[...]&Password=[...]
The first is a construct of bytes representing the request for the time stamp. The library above I have posted can help you build the request packet. Base64 is an algorithm to send binary data as text. Just google for it and you will find an implementation for it.
Regarding the HTTP requests: You should read Using WinInet (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/using_wininet.asp).
Sara78
April 12th, 2006, 04:01 AM
HI,
I have tried to use OpenSSL to create token request with standard IETF 3161 but the patch at the link http://www.opentsa.org/ is damaged!!
I have write at openssl administrator but he hasn't reply at my e-mail.
You can help me??
It is possible include openssl class, to create token request with visual studio .net???
Thanks a lot.
Sara
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.