在Windows Server 2003上使用makecert創建證書時,我必須設置私鑰上的權限才能訪問NETWORK SERVICE,以便私鑰可以由WCF服務讀取。我可以通過導航到C:\ Documents and Settings \ All Users \ Application Data \ Microsoft \ Crypto \ RSA \ MachineKeys來訪問該文件。一旦我設
接受了X509證書 誰能爲我提供關於如何創建一個自簽名證書的例子,這將通過下面的代碼被接受: ServiceHost svh = new ServiceHost(typeof(MyClass));
var tcpbinding = new NetTcpBinding(SecurityMode.TransportWithMessageCredential, true);