dsc/ext/PsGallery/xCertificate.2.5.0.0/Examples/Resources/xCertificateExport/1-CertByFriendlyName.ps1

<#
    .EXAMPLE
    Exports a certificate as a CERT using the friendly name to identify it.
#>

Configuration Example
{
    param
    (
        [Parameter()]
        [string[]]
        $NodeName = 'localhost'
    )

    Import-DscResource -ModuleName xCertificate

    Node $AllNodes.NodeName
    {
        xCertificateExport SSLCert
        {
            Type         = 'CERT'
            FriendlyName = 'Web Site SSL Certificate for www.contoso.com'
            Path         = 'c:\sslcert.cer'
        }
    }
}