Git Product home page Git Product logo

Comments (3)

SNikalaichyk avatar SNikalaichyk commented on June 14, 2024 1

Hi,
Most probably the Unicode-encoded thumbprint was copied from the Certificate window.

certgui

In Notepad++ convert you script to ANSI. You can use Notepad too, but the file must be reopened. You should see something like this:

encoding

Remove it and you should be fine.

from webadministrationdsc.

striker24JB avatar striker24JB commented on June 14, 2024

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.

tysonjhayes avatar tysonjhayes commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.