You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dsc/secureMOF.md
+21-11Lines changed: 21 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,17 +49,27 @@ This public key certificate has specific requirements for it to be used for DSC
49
49
>EKUs.
50
50
51
51
Any existing certificate on the _Target Node_ that meets these criteria can be used to secure DSC credentials.
52
-
53
-
## Creating the Certificate on the Target Node
54
52
55
-
The private key must be kept secret, because is used to decrypt the MOF on the **Authoring Node**
53
+
## Certificate creation
54
+
55
+
There are two approaches you can take to create and use the required Encryption Certificate (public-private key pair).
56
+
57
+
1. Create it on the **Target Node** and export just the public key to the **Authoring Node**
58
+
2. Create it on the **Authoring Node** and export the entire key pair to the **Target Node**
59
+
60
+
Method 1 is recommended because the private key used to decrypt credentials in the mof stays on the Target Node at all times.
61
+
62
+
63
+
### Creating the Certificate on the Target Node
64
+
65
+
The private key must be kept secret, because is used to decrypt the MOF on the **Target Node**
56
66
The easiest way to do that is to create the private key certificate on the **Target Node**, and copy the **public key certificate** to the computer being used to author the DSC configuration into a MOF file.
57
67
The following example:
58
68
1. creates a certificate on the **Target node**
59
69
2. exports the public key certificate on the **Target node**.
60
70
3. imports the public key certificate into the **my** certificate store on the **Authoring node**.
61
71
62
-
### On the Target Node: create and export the certificate
72
+
####On the Target Node: create and export the certificate
63
73
```powershell
64
74
# note: These steps need to be performed in an Administrator PowerShell session
Alternately, the private key certificate can be created on the **Authoring Node**, exported with the **private key** as a PFX file and then imported on the **Target Node**.
88
+
###Creating the Certificate on the Authoring Node
89
+
Alternately, the encryption certificate can be created on the **Authoring Node**, exported with the **private key** as a PFX file and then imported on the **Target Node**.
80
90
This is the current method for implementing DSC credential encryption on _Nano Server_.
81
91
Although the PFX is secured with a password it should be kept secure during transit.
82
92
The following example:
@@ -86,7 +96,7 @@ The following example:
86
96
4. imports the private key certificate into the root certificate store on the **Target node**.
87
97
- it must be added to the root store so that it will be trusted by the **Target node**.
88
98
89
-
### On the Auhtoring Node: create and export the certificate
99
+
####On the Authoring Node: create and export the certificate
90
100
```powershell
91
101
# note: These steps need to be performed in an Administrator PowerShell session
0 commit comments