Hello there!
I have followed the link and tried to export the certificate for Dev VM, but this is failing
link : Creating-a-local-PFX-copy-of-App-Service-Certificate.html
Error:
New-Object:
Line |
43 | … CertObject= New-Object System.Security.Cryptography.X509Certificates. …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Exception calling ".ctor" with "3" argument(s): "Array may not be empty or null. (Parameter 'rawData')"
InvalidOperation:
Line |
48 | [io.file]::WriteAllBytes(".\appservicecertificate.pfx",$pfxCertOb …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| You cannot call a method on a null-valued expression.
[1]: http://New-Object:+Line+|+++43+|++…+CertObject=+New-Object+System.Security.Cryptography.X509Certificates.+…++++++|++++++++++++++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++++++|+Exception+calling+".ctor"+with+"3"+argument(s):+"Array+may+not+be+empty+or+null.+(Parameter+'rawData')"+InvalidOperation:+Line+|+++48+|++++++[io.file]::WriteAllBytes(".\appservicecertificate.pfx",$pfxCertOb+…++++++|++++++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~++++++|+You+cannot+call+a+method+on+a+null-valued+expression.
Any help would be much appreciated
