[Mono-bugs] [Bug 62716][Blo] Changed - SslServerStream doesn't work properly
Tue, 10 Aug 2004 13:46:50 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by email@example.com.
--- shadow/62716 2004-08-10 12:38:56.000000000 -0400
+++ shadow/62716.tmp.25820 2004-08-10 13:46:50.000000000 -0400
@@ -167,6 +167,21 @@
compile this source file using:
[mcs|csc] /r:Mono.Security.dll source.csc
then execute and you will see that it writes "No
AssymetricAlgorithm!" to the console.
+------- Additional Comments From firstname.lastname@example.org 2004-08-10 13:46 -------
+Hmmm... what's the sample doing ?
+Is there a missing step ? because you seems to be creating a new PKCS
+12 file (AddCertificate) then you try to extract the private key from
+This can't work (as is) because a ".cer" file only contains a
+certificate (i.e. which only contains the public key).
+Once you create a PKCS12 file you can add certificates (with
+AddCertificate) and get them back using the Certificates property. But
+to get an AssymetricAlgorithm from the attributes you must first add
+it to the PKCS12 object (using AddPrivateKey).