< Back

Export-AzureVPNCertificate

Sat Jan 11, 2020 12:28 pm

NAME Export-AzureVPNCertificate



SYNOPSIS

Allow you to export the required certs for an Azure point-to-site VPN.



Filename of certificate is always the Thumb Print





SYNTAX

Export-AzureVPNCertificate -thumbPrint <String> [-path <String>] -password <SecureString> [-removeAfterExport]

-pfx [-WhatIf] [-Confirm] [<CommonParameters>]



Export-AzureVPNCertificate -thumbPrint <String> [-path <String>] [-removeAfterExport] -cer [-WhatIf] [-Confirm]

[<CommonParameters>]



Export-AzureVPNCertificate -subject <String> [-path <String>] [-removeAfterExport] -cer [-WhatIf] [-Confirm]

[<CommonParameters>]



Export-AzureVPNCertificate -subject <String> [-path <String>] -password <SecureString> [-removeAfterExport] -pfx

[-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-thumbPrint <String>



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-subject <String>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-path <String>



Required? false

Position? named

Default value $env:TMP

Accept pipeline input? false

Accept wildcard characters? false



-password <SecureString>



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-removeAfterExport [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-pfx [<SwitchParameter>]



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-cer [<SwitchParameter>]



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

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



NOTES





Written by Ben Taylor

Version 1.0, 01.04.2017



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



PS C:\\>Export-AzureVPNCertificate -subject 'supportAccess.remote'















RELATED LINKS