473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Need som help with a signature.

This is the full background of my problem.

I´m working with a client who connects to a secure webservice.
I´m using VS 2003 .Net. with WSE 2.0 sp3 and the .Net 1.1 framework

I got no access to the webservice code but i got a manual from the
webservice owner on how to connect.
The manual expects me to have some knowledge in WS-Security,
WS-SecureConversation and WS-Trust.

The problem is I dont really understand the explanation in this manual.

I was totally new to Webservices and certificates when i started this
project so im in the process of learning.

The Webservice uses a Challenge/Response method to login.

The challenge is a random number sent to me in a RSTR in a <wst:challenge>
element.

(This is where i got stuck)
Now i need to sign this challenge and send back a RSTR to the webservice
with the signature located in a <wst:binaryexchangeelement.
The valuetype of the signature is pkcs7 and it shall be base64 encoded.

I got a SmartCard witch contains my personal Id(certificate(s))
(im using smarttrust as a signing client) wich i shall use to sign this
challenge the webservice owner sent me this one.

And i got an example of an client ouputtrace example from the manual wich
looks like this (without header and such, just the important part.)

<wst:SignChallengeResponse>
<wst:Challenge>
0CIVnrRepvNSvlkgUgrF8BWBXFk4Icjoob1HPtnoEj4=
</wst:Challenge>
</wst:SignChallengeResponse>
<wst:BinaryExchange ValueType="http://host.com/signedChallenge/pkcs7"
EncodingType="xs:base64Binary">MIIFlAYJKoZIhvcNAQc CoIIFhTCCBYECAQExCzAJBgUrDgMCGgUAMDsGCSqGSIb3DQEHA aAuBCwwQ0lWbnJSZXB2TlN2bGtnVWdyRjhCV0JYRms0SWNqb29 iMUhQdG5vRWo0PaCCA9AwggPMMIICtKADAgECAgMDUtYwDQYJK oZIhvcNAQEFBQAwUDELMAkGA1UEBhMCU0UxGjAYBgNVBAoUEVB vc3RlbiBTdmVyaWdlIEFCMSUwIwYDVQQDFBxQb3N0ZW4gU3Zlc mlnZSBBQiBUZXN0IENBIHYxMB4XDTAzMDUyMDIzNTk1OVoXDTA 1MDUxOTIzNTk1OVowXjELMAkGA1UEBhMCU0UxFjAUB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T+/SF8MbWc5jhdkrwbgVSOjwrvu3klDCMYIBXDCCAVgCAQEwVzBQM QswCQYDVQQGEwJTRTEaMBgGA1UEChQRUG9zdGVuIFN2ZXJpZ2U gQUIxJTAjBgNVBAMUHFBvc3RlbiBTdmVyaWdlIEFCIFRlc3QgQ 0EgdjECAwNS1jAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQs GCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDQwOTI5MTYwO DIxWjAjBgkqhkiG9w0BCQQxFgQUKCccjt1oP6vl6ae5w7gNcBG 3fRswDQYJKoZIhvcNAQEBBQAEgYAKBOii8dikhT/cjc+XMpRRweTioYO+yEljPz0N9n6ZQqNR/3bOX7RQvWio6xtWkIre0U6SO6w2RUhQ4Xj9QPC7XUMU8n+yuF1 zOIP9YyH/M4F3TzijXM3iBVwv/aeqDrIy7pI1Y3do8x0qsR7RfkPITb14qgIScHcfBKDDoO29+Q= =</wst:BinaryExchange>

I have found 0 examples of anything similar so i ask you and hope you could
give me some directions in how to generate this signature?

Regards Joel.

Aug 22 '06 #1
0 818

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: pak76 | last post by:
Class SignedXml is used to produce/verify signature over XML document. One of its methods, function GetIdElement, is used to select Xml elements for signature and verification and consist following...
0
by: David Mediavilla | last post by:
I am trying to check a SOAP signature with WSE 1.0 SP1, but with a certain transform I only get an "Unknown tranform" exception. The SOAP signature is like this: <ds:Signature>...
5
by: Darius | last post by:
I'm writing here in hopes that someone can explain the difference between the new and virtual/override keywords in C#. Specifically, what is the difference between this: public class Window {...
9
by: Terry Olsen | last post by:
I'm running an asynchronous Socket. In the ReceiveCallback method, I need to append what is received to a textbox on the main form. I have this code: Private Sub ToChatWindow(ByVal msg As...
0
by: S Wheeler | last post by:
Hi All - I am creating a upgrade utility that transfers an bin / exe image over an xml stream. But I can not seem to get the deserialization of the binary field to work correctly. What I have is...
0
by: Pucca | last post by:
Hi I'm using vs2005. I am getting a bunch of compiler warnings after I made some changes to my code that was compiling clean. I'm also getting memory errors when I run my program and it's...
43
by: Frodo Baggins | last post by:
Hi all, We are using strcpy to copy strings in our app. This gave us problems when the destination buffer is not large enough. As a workaround, we wanted to replace calls to strcpy with strncpy....
0
by: retrorocket | last post by:
I've searched and searched, I could really use some suggestions. I have a Crystal Report in report designer that contains a Report Header, a Page Header, and a Detail section. The first page should...
15
by: javelin | last post by:
I need to be able to create a javascript based drawing/signature box, and be able to save it. Can someone refer me to a script that will allow this, or even a 3rd party package for sale? It can't...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.