Duo with O365 cert error


I am following the document: Duo Protection for Office 365 | Duo Security and when i get to part 6, running the command “$cert=New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("C:\Path\to\dag.crt")”

I get the following error:

PS C:\WINDOWS\system32> $cert=New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("C:\dag.crt")

New-Object : Exception calling ".ctor" with "1" argument(s): "The system cannot find the file specified.


At line:1 char:7

  • $cert=New-Object System.Security.Cryptography.X509Certificates.X509Ce …

  • CategoryInfo : InvalidOperation: (:slight_smile: [New-Object], Metho■■■■

  • FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

Could someone please help?



Hi, please contact Duo Support for help with your issue.