< Back
Update-PhpCAInfo
Post
NAME Update-PhpCAInfo
SYNOPSIS
Initializes or updates the certification authority file for a PHP installation.
SYNTAX
Update-PhpCAInfo [[-Path] <String>] [[-CAPath] <String>] [[-CustomCAPath] <String>] [[-Source] <String>]
[-SkipChecksumCheck] [<CommonParameters>]
DESCRIPTION
This command can be used to configure a PHP installation so that it will use an up-to-date list of valid
certification authoriries.
PARAMETERS
-Path <String>
The path of the PHP installation.
If omitted we'll use the one found in the PATH environment variable.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-CAPath <String>
The path of the CA file to be saved. If omitted, it will be saved as <PHP installation folder>\\ssl\\cacert.pem
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-CustomCAPath <String>
If you have a custom CA certificate, you can use this parameter to specify its path: it will be included with
the list of the official CA certificates downloaded.
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Source <String>
The source of the root CA certificates. It can be:
- 'Curl' [default] to fetch the certificates from the cURL website (https://curl.haxx.se)
- 'LocalMachine' to fetch the certificates from the Windows repository of the local machine
- 'CurrentUser' to fetch the certificates from the Windows repository of the current user
Required? false
Position? 4
Default value Curl
Accept pipeline input? false
Accept wildcard characters? false
-SkipChecksumCheck [<SwitchParameter>]
Use this switch to skip checking the checksum of the CA list fetched from curl website.
This may be used to ignore a mismatch error which is false positive if the CA is updated recently and the CA
list is cached by the CDN.
Required? false
Position? named
Default value False
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
bool
RELATED LINKS
SYNOPSIS
Initializes or updates the certification authority file for a PHP installation.
SYNTAX
Update-PhpCAInfo [[-Path] <String>] [[-CAPath] <String>] [[-CustomCAPath] <String>] [[-Source] <String>]
[-SkipChecksumCheck] [<CommonParameters>]
DESCRIPTION
This command can be used to configure a PHP installation so that it will use an up-to-date list of valid
certification authoriries.
PARAMETERS
-Path <String>
The path of the PHP installation.
If omitted we'll use the one found in the PATH environment variable.
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-CAPath <String>
The path of the CA file to be saved. If omitted, it will be saved as <PHP installation folder>\\ssl\\cacert.pem
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-CustomCAPath <String>
If you have a custom CA certificate, you can use this parameter to specify its path: it will be included with
the list of the official CA certificates downloaded.
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Source <String>
The source of the root CA certificates. It can be:
- 'Curl' [default] to fetch the certificates from the cURL website (https://curl.haxx.se)
- 'LocalMachine' to fetch the certificates from the Windows repository of the local machine
- 'CurrentUser' to fetch the certificates from the Windows repository of the current user
Required? false
Position? 4
Default value Curl
Accept pipeline input? false
Accept wildcard characters? false
-SkipChecksumCheck [<SwitchParameter>]
Use this switch to skip checking the checksum of the CA list fetched from curl website.
This may be used to ignore a mismatch error which is false positive if the CA is updated recently and the CA
list is cached by the CDN.
Required? false
Position? named
Default value False
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
bool
RELATED LINKS