< Back

Add-CertToGit

Mon Jan 13, 2020 7:03 pm

NAME Add-CertToGit



SYNOPSIS

Adds a X509Certificate to git trusted root certs





SYNTAX

Add-CertToGit [-Certificate] <X509Certificate> [[-CrtPath] <String>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-Certificate <X509Certificate>

The certificate to add



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-CrtPath <String>

The path to the crt file to update



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$cert = Get-SiteRootCert -Url 'https://www.google.com'



Add-CertToGit -Certificate $cert









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>$cert = Get-SiteRootCert -Url 'https://www.google.com'



Add-CertToGit -Certificate $cert -CrtPath 'C:\\Certs\\MyCerts.crt'











RELATED LINKS