Hi All!!! I wrote an SSL server similar to selfserv.c accessible at the link below: http://lxr.mozilla.org/security/source/security/nss/cmd/selfserv/selfserv.c
The options configuration string I passed to the application is "-n Server_Certificate_Nickname -d Certificate_Database_Path -w Password - v -o -rr" The meaning of the various options is given below: -n RSA Certificate Nickname -d Local Certificate Database Path -w Password for Certificate Database -v To turn on Debugging -o To Continue even if client certificate is Invalid -rr To require client to supply certificate on initial handshake Now the problem that is occuring here is that SSL_ConfigServerSessionIDCache is reinitializing the Server_Certificate_Nickname string to "" due to which the application is not able to find out the certificate or the private key in the database.. Another issue: I wrote its equivalent client application working similar to the tstclnt.c accessible at the link below: http://lxr.mozilla.org/security/source/security/nss/cmd/tstclnt/tstclnt.c I tested the application with my own compiled selfserv.c The PR_Connect function in the client is failing with PR_GetError throwing up error -5934(PR_IN_PROGRESS_ERROR) The API's description of it is: "Operation is still in progress (probably a non-blocking connect)" On the other hand, the PR_Accept on the server side is returning SUCCESS(!!! :-o). So I cannot figure out what has gone wrong with my application. Earlier I had this same code in C and all the stuff was working properly but now I've converted it into C++ code and there are problems popping up... Any help would be appreciated, Warm Regards, D3|\||\|!$ _______________________________________________ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto