Coder Social home page Coder Social logo

posh-jwt's People

Contributors

sp3269 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

posh-jwt's Issues

Got error when create RS256 JWT

#No error to create New-Object X509Certificate2
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("\131519.p12","notasecret")

#Got error when create the RS256JWT
$jwt = New-Jwt -Cert $cert -PayloadJson $payLoad -Verbose

Signing with SHA256 and Pkcs1 padding failed using private key
System.Security.Cryptography.RSACryptoServiceProvider
At C:\Program Files\WindowsPowerShell\Modules\JWT\1.9.0\JWT.psm1:282 char:25
... catch { throw "Signing with SHA256 and Pkcs1 padding failed using ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Signing with SH...ServiceProvider:String) [], RuntimeExcepti
on
+ FullyQualifiedErrorId : Signing with SHA256 and Pkcs1 padding failed using private key System.Security.
Cryptography.RSACryptoServiceProvider

README.md mistake or misinformation

Hi, according to your docs:

The module provides two main functions: New-Jwt, Test-Jwt (also aliased to Verify-JwtSignature), as well as service functions - ConvertFrom-Base64UrlString, ConvertFrom-Base64UrlString, Get-JwtHeader, and Get-JwtPayload. Descriptions and help for each are available by running Get-Help.

In terms of cmdlets, the ones highlighted don't show up, also they're the same?

image

Cheers.

Docusign JWT RS256

image
Hi,

I am looking to generate the JWT token to access DocuSign API, but unable to do so, as it isn't clear to me how to perform the RSASHA256 encoding (as shown in the snippet attached) [RSASHA256(
base64UrlEncode(header) + "." +
base64UrlEncode(payload),PUBLICKEY, PRIVATEKEY

Can you please assist?

I am looking to do this in PowerShell

Multiple fault conditions in signing code

The signing code errors out under a number of conditions:

  • Using CNG on Windows/Powershell Core
  • When a system defaults to CSP that doesn't support SHA256 (Windows/Powershell)
  • On Linux, due to Sign parameter set.

Need to implement new signing, error handling

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.