Edit

Share via


New-EntraTrustedCertificateAuthority

Creates a trusted certificate authority.

Syntax

Default (Default)

New-EntraTrustedCertificateAuthority

    -CertificateAuthorityInformation <CertificateAuthorityInformation>
    [<CommonParameters>]

Description

The New-EntraTrustedCertificateAuthority cmdlet creates a trusted certificate authority in Microsoft Entra ID.

Examples

Example 1: Creates the trusted certificate authorities in your directory

Connect-Entra -Scopes 'Organization.ReadWrite.All'

$new_ca = New-Object -TypeName Microsoft.Open.AzureAD.Model.CertificateAuthorityInformation #Create CertificateAuthorityInformation object
$new_ca.AuthorityType = "RootAuthority"
$new_ca.CrlDistributionPoint = "https://example.crl"
$new_ca.DeltaCrlDistributionPoint = "https://deltaexample.crl"
$new_ca.TrustedCertificate = "Path to .cer file(including cer file name)"
New-EntraTrustedCertificateAuthority -CertificateAuthorityInformation $new_ca
Id
--
aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb

This command creates the trusted certificate authorities in your directory.

  • -CertificateAuthorityInformation Parameter specifies a CertificateAuthorityInformation object. It includes properties like AuthorityType, CrlDistributionPoint, DeltaCrlDistributionPoint, and TrustedCertificate.

Parameters

-CertificateAuthorityInformation

Specifies a CertificateAuthorityInformation object.

Parameter properties

Type:CertificateAuthorityInformation
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.