Comments (3)
Hi,
Most probably the Unicode-encoded thumbprint was copied from the Certificate window.
In Notepad++ convert you script to ANSI. You can use Notepad too, but the file must be reopened. You should see something like this:
Remove it and you should be fine.
from webadministrationdsc.
After experimenting, I believe I've figured out what the culprit is (still don't know why it's being caused).
I'm using Powershell 5.0 RTM in the environment.
It seems that when ConvertTo-WebBinding parses the BindingInfo, for certificateThumbPrint it inserts a Unicode Left-To-Right character at the beginning (8206). This causes the total length of the string to be 1 larger than intended (how I discovered it).
I solved it by doing
$CertificateThumbprint = $Binding.CertificateThumbprint -replace '[\W]',''
to strip out any weird characters.
Then change from
$OutputObject.Add('certificateHash', $Binding.CertificateThumbprint)
to
$OutputObject.Add('certificateHash', [String]$CertificateThumbPrint)
I stll can't figure out why it inserts the LTR character in the beginning though.
from webadministrationdsc.
Hi @striker24JB @SNikalaichyk has submitted a fix for this which we've merged. As noted you can remove the character manually or if you update to dev latest it will remove the character for you. As this looks to be resolved I'm going to go ahead and close this. Please reopen if you are still having issues or need more assistance.
from webadministrationdsc.
Related Issues (20)
- xWebConfigPropertyCollection: Adding system.webServer/security/authorization fails Test-TargetResource HOT 3
- xWebAdministration: Rename master branch to main
- Parameter 'PhysicalPath' should point to existing path, on Azure File Share HOT 4
- Unable to configure IIS using PowerShell DSC Resource xWebAdministration v3.20 HOT 3
- Can you set multiple file extensions to allowed for request filtering? HOT 1
- Suported? - xWebSite - Windows Authentication - Advanced Settings/Providers HOT 2
- WebApplication: Integration test failing
- How to add credentials with empty password in xWebAppPool. HOT 2
- Confusing package names in PowerShell Gallery HOT 5
- Name will not take ".Net6 Core ", Net6 Core works but want the "." HOT 1
- WebAppPoolDefaults : Add Missing Configuration Items
- xWebAppPool and xWebApplication cannot delete entities in use and do nothing HOT 1
- Website: PowerShell DSC resource DSC_WebSite failed to execute Test-TargetResource functionality with error message: System.Exception: Please ensure that the PowerShell module 'WebAdministration' is installed.
- Website: unable to change advanced Authentication Settings HOT 1
- IisFeatureDelegation wipes out config HOT 1
- IIS site binding new SSL flags
- IisMimeTypeMapping ansible config? HOT 1
- WebAdministrationDsc: Move historic change log back to the file CHANGELOG.md
- WebConfigPropertyCollection needs to allow null or empty strings for specific collection items like '/system.webServer/security/requestFiltering/hiddenSegments'
- IisModule - Using to remove at server level doesn't work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webadministrationdsc.