问题描述
服务器配置文件:<system.serviceModel><services><servicebehaviorConfiguration="mySb"name="MyService.Service1"><endpointaddress=""behaviorConfiguration="myEb"binding="webHttpBinding"bindingConfiguration="webBind"contract="MyService.IService1"><identity><certificate/></identity></endpoint><endpointaddress="mex"binding="mexHttpsBinding"name="mex"contract="IMetadataExchange"/></service></services><behaviors><serviceBehaviors><behaviorname="mySb"><!--为避免泄漏元数据信息,请在部署前将以下值设置为false--><serviceMetadatahttpGetEnabled="false"httpsGetEnabled="true"/><!--要接收故障异常详细信息以进行调试,请将以下值设置为true。在部署前设置为false以避免泄漏异常信息--><serviceDebugincludeExceptionDetailInFaults="true"/><serviceCredentials><serviceCertificatestoreName="My"x509FindType="FindBySubjectName"findValue="certnew"storeLocation="LocalMachine"/><clientCertificate><authenticationcertificateValidationMode="Custom"customCertificateValidatorType="WCFService.CustomX509CertificateValidator,WCFService"/></clientCertificate></serviceCredentials></behavior></serviceBehaviors><endpointBehaviors><behaviorname="myEb"><webHttphelpEnabled="true"automaticFormatSelectionEnabled="true"/><clientCredentials><clientCertificatestoreName="My"x509FindType="FindBySubjectName"findValue="certnew"storeLocation="CurrentUser"/></clientCredentials></behavior></endpointBehaviors></behaviors><bindings><webHttpBinding><bindingname="webBind"openTimeout="00:10:00"receiveTimeout="00:10:00"closeTimeout="10:10:00"sendTimeout="00:10:00"maxReceivedMessageSize="2147483647"><readerQuotasmaxStringContentLength="2147483647"/><securitymode="Transport"><transportclientCredentialType="None"></transport></security></binding></webHttpBinding><customBinding><bindingname="JsonMapper"><webMessageEncodingwebContentTypeMapperType="Microsoft.Ajax.Samples.JsonContentTypeMapper,JsonContentTypeMapper"/><httpTransportmanualAddressing="true"/></binding></customBinding></bindings><protocolMapping><addbinding="webHttpBinding"scheme="https"/></protocolMapping><serviceHostingEnvironmentaspNetCompatibilityEnabled="true"multipleSiteBindingsEnabled="true"/></system.serviceModel>
证书名:certnew.cer(客户端已安装)客户端浏览器访问:找不到证书:certnew.cer,是证书问题还是服务器配置问题呢?
解决方案
解决方案二:
CA证书的名字必须和服务器名字一样吗?