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: includes/active-directory-b2c-create-self-signed-certificate.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ If you don't already have a certificate, you can use a self-signed certificate.
14
14
15
15
On Windows, use the [New-SelfSignedCertificate](/powershell/module/pki/new-selfsignedcertificate) cmdlet in PowerShell to generate a certificate.
16
16
17
-
1. Run the following PowerShell command to generate a self-signed certificate. Modify the `-Subject` argument as appropriate for your application and Azure AD B2C tenant name. You can also adjust the `-NotAfter` date to specify a different expiration for the certificate.
17
+
1. Run the following PowerShell command to generate a self-signed certificate. Modify the `-Subject` argument as appropriate for your application and Azure AD B2C tenant name such as `contosowebapp.contoso.onmicrosoft.com`. You can also adjust the `-NotAfter` date to specify a different expiration for the certificate.
18
18
19
19
```PowerShell
20
20
New-SelfSignedCertificate `
@@ -27,11 +27,15 @@ On Windows, use the [New-SelfSignedCertificate](/powershell/module/pki/new-selfs
27
27
-CertStoreLocation "Cert:\CurrentUser\My"
28
28
```
29
29
30
-
1. Open **Manage user certificates** > **Current User** > **Personal** > **Certificates** > *yourappname.yourtenant.onmicrosoft.com*.
30
+
1. On Windows computer, search for and select **Manage user certificates**
31
+
1. Under **Certificates - Current User**, select **Personal** > **Certificates**>*yourappname.yourtenant.onmicrosoft.com*.
31
32
1. Select the certificate, and then select **Action** > **All Tasks** > **Export**.
1. Accept the defaults for **Export File Format**, and then select **Next**.
35
+
1. Enable **Password** option, enter a password for the certificate, and then select **Next**.
36
+
1. To specify a location to save your certificate, select **Browse** and navigate to a directory of your choice.
37
+
1. On the **Save As** window, enter a **File name**, and then select **Save**.
38
+
1. Select **Next**>**Finish**.
35
39
36
40
For Azure AD B2C to accept the .pfx file password, the password must be encrypted with the TripleDES-SHA1 option in the Windows Certificate Store Export utility, as opposed to AES256-SHA256.
0 commit comments