Skip to content

Commit b3b03f3

Browse files
authored
Merge pull request MicrosoftDocs#2813 from msbemba/patch-130
Update New-AdfsAzureMfaTenantCertificate.md
2 parents f94f1b5 + 92acfd0 commit b3b03f3

File tree

6 files changed

+24
-15
lines changed

6 files changed

+24
-15
lines changed

docset/winserver2016-ps/adfs/New-AdfsAzureMfaTenantCertificate.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@ These commands create a certificate for Azure MFA, register the certificate in a
4646
4747
### Example 2: Determine which certificate Azure MFA is using
4848
```
49-
PS C:\> New-AdfsAzureMfaTenantCertificate -TenantID <your tenant ID> | Out-File amfacert.cer
49+
$CertInBase64 = New-AdfsAzureMfaTenantCertificate -TenantID
50+
$cert = Security.Cryptography.X509Certificates.X509Certificate2
51+
$cert | Format-List *
5052
```
5153

52-
After AD FS has been configured for Azure MFA, this command determines which certificate Azure MFA is using.
54+
After AD FS has been configured for Azure MFA, this command determines which certificate Azure MFA is using and when it expires.
5355

5456
## PARAMETERS
5557

docset/winserver2016-ps/adfs/Set-AdfsAzureMfaTenant.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ PS C:\> Set-AdfsAzureMfaTenant -TenantId <your tenant ID> -ClientId 981f26a1-7f4
3333

3434
This command creates a certificate for Azure MFA, registers it in the tenant, and enables Azure MFA on the AD FS farm.
3535

36-
### Example 2: Determine the Azure MFA certificate
36+
### Example 2: Determine which certificate Azure MFA is using
3737
```
38-
PS C:\> New-AdfsAzureMfaTenantCertificate -TenantID <your tenant ID> -out-file amfacert.cer
38+
$CertInBase64 = New-AdfsAzureMfaTenantCertificate -TenantID <your tenant ID>
39+
[Security.Cryptography.X509Certificates.X509Certificate2]([System.Convert]::FromBase64String($CertInBase64))
3940
```
4041

41-
This command determines which certificate Azure MFA is using, after AD FS has been configured for Azure MFA using the previous example.
42+
After AD FS has been configured for Azure MFA, this command determines which certificate Azure MFA is using and when it expires.
4243

4344
## PARAMETERS
4445

docset/winserver2019-ps/adfs/New-AdfsAzureMfaTenantCertificate.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@ These commands create a certificate for Azure MFA, register the certificate in a
4646
4747
### Example 2: Determine which certificate Azure MFA is using
4848
```
49-
PS C:\> New-AdfsAzureMfaTenantCertificate -TenantID <your tenant ID> | Out-File amfacert.cer
49+
$CertInBase64 = New-AdfsAzureMfaTenantCertificate -TenantID
50+
$cert = Security.Cryptography.X509Certificates.X509Certificate2
51+
$cert | Format-List *
5052
```
5153

52-
After AD FS has been configured for Azure MFA, this command determines which certificate Azure MFA is using.
54+
After AD FS has been configured for Azure MFA, this command determines which certificate Azure MFA is using and when it expires.
5355

5456
## PARAMETERS
5557

docset/winserver2019-ps/adfs/Set-AdfsAzureMfaTenant.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ PS C:\> Set-AdfsAzureMfaTenant -TenantId <your tenant ID> -ClientId 981f26a1-7f4
3333

3434
This command creates a certificate for Azure MFA, registers it in the tenant, and enables Azure MFA on the AD FS farm.
3535

36-
### Example 2: Determine the Azure MFA certificate
36+
### Example 2: Determine which certificate Azure MFA is using
3737
```
38-
PS C:\> New-AdfsAzureMfaTenantCertificate -TenantID <your tenant ID> -out-file amfacert.cer
38+
$CertInBase64 = New-AdfsAzureMfaTenantCertificate -TenantID <your tenant ID>
39+
[Security.Cryptography.X509Certificates.X509Certificate2]([System.Convert]::FromBase64String($CertInBase64))
3940
```
4041

41-
This command determines which certificate Azure MFA is using, after AD FS has been configured for Azure MFA using the previous example.
42+
After AD FS has been configured for Azure MFA, this command determines which certificate Azure MFA is using and when it expires.
4243

4344
## PARAMETERS
4445

docset/winserver2022-ps/adfs/New-AdfsAzureMfaTenantCertificate.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@ These commands create a certificate for Azure MFA, register the certificate in a
4646
4747
### Example 2: Determine which certificate Azure MFA is using
4848
```
49-
PS C:\> New-AdfsAzureMfaTenantCertificate -TenantID <your tenant ID> | Out-File amfacert.cer
49+
$CertInBase64 = New-AdfsAzureMfaTenantCertificate -TenantID
50+
$cert = Security.Cryptography.X509Certificates.X509Certificate2
51+
$cert | Format-List *
5052
```
5153

52-
After AD FS has been configured for Azure MFA, this command determines which certificate Azure MFA is using.
54+
After AD FS has been configured for Azure MFA, this command determines which certificate Azure MFA is using and when it expires.
5355

5456
## PARAMETERS
5557

docset/winserver2022-ps/adfs/Set-AdfsAzureMfaTenant.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ PS C:\> Set-AdfsAzureMfaTenant -TenantId <your tenant ID> -ClientId 981f26a1-7f4
3333

3434
This command creates a certificate for Azure MFA, registers it in the tenant, and enables Azure MFA on the AD FS farm.
3535

36-
### Example 2: Determine the Azure MFA certificate
36+
### Example 2: Determine which certificate Azure MFA is using
3737
```
38-
PS C:\> New-AdfsAzureMfaTenantCertificate -TenantID <your tenant ID> -out-file amfacert.cer
38+
$CertInBase64 = New-AdfsAzureMfaTenantCertificate -TenantID <your tenant ID>
39+
[Security.Cryptography.X509Certificates.X509Certificate2]([System.Convert]::FromBase64String($CertInBase64))
3940
```
4041

41-
This command determines which certificate Azure MFA is using, after AD FS has been configured for Azure MFA using the previous example.
42+
After AD FS has been configured for Azure MFA, this command determines which certificate Azure MFA is using and when it expires.
4243

4344
## PARAMETERS
4445

0 commit comments

Comments
 (0)