Skip to content

Commit 63b10f9

Browse files
TimoSalomakiRon Petrusha
authored andcommitted
Fixed inconsistent list format (#11645)
There are two steps when specifying a certificate as the client credential type. Because of that, the current styling of that section of the document is confusing (the first part is an unordered list, the second part is outside the list). I think there are three options to fix it: 1. Numbered list (1 & 2) 2. Unordered list (dots) 3. No list at all As far as I've seen in other documents, the first option seems to be the most fitting. Also, the second code sample had a small problem with the indentation of the closing tags.
1 parent 2522944 commit 63b10f9

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/framework/wcf/feature-details/how-to-create-temporary-certificates-for-use-during-development.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Once you have set up the temporary certificates, you can use them to develop WCF
7272

7373
### To specify a certificate as the client credential type
7474

75-
- In the configuration file for a service, use the following XML to set the security mode to message, and the client credential type to certificate.
75+
1. In the configuration file for a service, use the following XML to set the security mode to message, and the client credential type to certificate.
7676

7777
```xml
7878
<bindings>
@@ -86,19 +86,19 @@ Once you have set up the temporary certificates, you can use them to develop WCF
8686
</bindings>
8787
```
8888

89-
In the configuration file for a client, use the following XML to specify that the certificate is found in the user’s store, and can be found by searching the SubjectName field for the value "CohoWinery."
90-
91-
```xml
92-
<behaviors>
93-
<endpointBehaviors>
94-
<behavior name="CertForClient">
95-
<clientCredentials>
96-
<clientCertificate findValue="CohoWinery" x509FindType="FindBySubjectName" />
97-
</clientCredentials>
98-
</behavior>
99-
</endpointBehaviors>
100-
</behaviors>
101-
```
89+
2. In the configuration file for a client, use the following XML to specify that the certificate is found in the user’s store, and can be found by searching the SubjectName field for the value "CohoWinery."
90+
91+
```xml
92+
<behaviors>
93+
<endpointBehaviors>
94+
<behavior name="CertForClient">
95+
<clientCredentials>
96+
<clientCertificate findValue="CohoWinery" x509FindType="FindBySubjectName" />
97+
</clientCredentials>
98+
</behavior>
99+
</endpointBehaviors>
100+
</behaviors>
101+
```
102102

103103
For more information about using certificates in WCF, see [Working with Certificates](working-with-certificates.md).
104104

0 commit comments

Comments
 (0)