473,394 Members | 1,806 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,394 software developers and data experts.

[SSL & Socket][Dot Net2 ] [Windows Server 2003]


Bonjour,

J'ai une application windows service en Dot Net 2 ( C# )
Cette application est une application serveur
Elle utilise des sockets pour pouvoir communiquer avec des clients.
L'application utilise SSL comme ceci :

Lors du démarrage du serveur
............
// x509Cer =
System.Security.Cryptography.X509Certificates.X509 Certificate.CreateFromCertFile(certificatePath);
x509Cer = new
System.Security.Cryptography.X509Certificates.X509 Certificate(certificatePath);

Lors da la connection d'un client :
.............

sslStream = new SslStream(LstViewer.GetStream(), true);
sslStream.AuthenticateAsServer(x509Cer,false,Syste m.Security.Authentication.SslProtocols.Default,fal se);

Lors de l'execution de cette ligne j'ai l'erreur suivante :

The server mode SSL must use a certificate with the associated private
key. ;
Boolean AcquireServerCredentials(Byte[] ByRef) ;

J'ai généré le certificat de la facon suivante :

1. makecert -r -pe -n "CN=Wapper" -b 01/01/2007 -e 01/01/2036 -ss
Wapper -sr localMachine -sv IVS.pvk IVS.cer
2. cert2spc IVS.cer IVS.spc
3. pvkimprt -pfx IVS.spc IVS.pvk

Ensuite j'ai installé le fichier IVS.cer et .pfx sur le serveur ( double
clic et install)
Sur le client j'ai installé le fichier IVS.cer

Mes questions :
pourquoi j'obtiens cette erreur ?
comment avoir un certificat avec la clé private associé

Merci
Nov 27 '07 #1
0 1150

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

Similar topics

4
by: Pete Davis | last post by:
I've written an async socket server app and I'm having an issue with the EndReceive() call. My begin receive call is: sockState.RemoteSocket.BeginReceive(sockState.ReceiveBuffer, 0,...
7
by: Colin | last post by:
I'm writing a little console socket server but I'm having some difficulty. Can I ask your advice - where is the best place to get some help on that topic? It would be nice if some people who knew...
4
by: Macca | last post by:
I am writing an application that uses asynchronous sockets to get data over ethernet from embedded devices, up to 30 concurrent devices.(These devices are written in C). My application...
9
by: Macca | last post by:
Hi, I have a synchronous socket server which my app uses to read data from clients. To test this I have a simulated client that sends 100 byte packets. I have set up the socket server so...
0
by: Macca | last post by:
Hi, I am writing an asychronous socket server to handle 20+ simulataneous connections. I have used the example in MSDN as a base. The code is shown at end of question. Each connection has a...
9
by: zxo102 | last post by:
Hi everyone, I am using a python socket server to collect data from a socket client and then control a image location ( wxpython) with the data, i.e. moving the image around in the wxpython frame....
4
by: Engineerik | last post by:
I am trying to create a socket server which will listen for connections from multiple clients and call subroutines in a Fortran DLL and pass the results back to the client. The asynchronous socket...
0
by: doc | last post by:
Hi Hard to know where to post this and I don't want to double post it - please move it if you need to, I am trying to connect a Flash client socket (XML) to a php socket server (using Flash 8 and...
2
by: vasu1308 | last post by:
Hi all I am working on a socket program in Perl. Main goal is to develop a proxy server. Here is the code attached. An error is encountered. Anyone Please help me out. #!/usr/bin/perl -w #...
4
by: Seb | last post by:
I'm making a ssl server, but I'm not sure how I can verify the clients. What do I actually need to place in _verify to actually verify that the client cert is signed by me? 50 class...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.