Comments (3)
The openssl genrsa
command generates an RSA private key, which should not be filled into the --encryptionCert
field.
encryptionPublicKey
is used for digital signatures, which is typically stored at IDP and SP normally will sign with the corresponding private key on their end, while encryptionCert
is used for encrypting the sensitive information during communication, so you can have SP to encrypt the request and IDP just need to hold the private key to decrypt it.
TL;DR
You need 2 public keys from 2 pairs of keys. You can use the idp-public-cert.pem
in the codebase for the encryptionCert
field, or you can generate a pair by following the README.
As for the encryptionPublicKey
, you can do
openssl genpkey -algorithm RSA -out private_key.pem -aes256
openssl rsa -in private_key.pem -pubout -out public_key.pem
With corrected form of keys, this issue should be fixed paticularly. Undeniably, this is a bug within the samlp
package it's using.
from saml-idp.
Hi @jazelly, Can I have some questions? This app has been working well for my local testing. But recently I need to use the "assertion encryption" feature and I can only get a "CA.cer" certificates(from okta). I'm not sure what encryptionPublicKey
should be and where to get it? Thank you!
from saml-idp.
@zhengxiangyue My understanding is this:
I can only get a "CA.cer" certificates(from okta)
You shouldn't need to use a third-party IDP's certificate, as this repo acts as a mock IDP
I'm not sure what encryptionPublicKey should be and where to get it
Like what I suggested, you can generate a pair of public key and private key. The encryptionPublicKey
should be the public key.
Hope that helps
from saml-idp.
Related Issues (20)
- Not really clear how to use HOT 3
- "Invalid Session Participant" - incorrect session index exception HOT 1
- Getting 404 for all `bower_components` HOT 3
- Docker Compose build command fails with "Maximum call stack size exceeded" error HOT 2
- recommend samltest.id as demo HOT 1
- Is it possible to serve /metadata in human readable format? HOT 1
- Allowing commas in multiValue values
- Returning `httpServer` object from `runServer` HOT 2
- Bump dependency `node-samlp` HOT 1
- next is not a function HOT 2
- 'Invalid Session Participant' on SLO request despite the sessionIndex having the same value as in the authentication response HOT 1
- IDP Server cannot be stopped gracefully in jest integration tests HOT 1
- docker-compose.yml not compatible with Docker Compose v2?
- Loosen `parseSamlRequest` and `showUser` HOT 1
- Release new version to NPM?
- CORS errors? HOT 5
- Yarn audit issues
- Can I use for testing with Keycloak? HOT 1
- Production Support 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 saml-idp.