-
Notifications
You must be signed in to change notification settings - Fork 2
Support different keys for decryption and signature verification. #15
Conversation
Under what circumstances is there a need to support different keys? From what I understand, spcp setups typically recycle the decrypt assertion key for signing. Also.. is there a way to make this change without breaking backward compatibility? |
Correct me if I'm wrong, my understanding is that the application keys (or more specifically the X.509 certs) used by SPCP for signature (verification) and assertion encryption are provided by the service provider, both of which could (and should) be different? |
Your understanding is correct - that said, I feel the need to retain backward compatibility so that those who have opted to use the same certs can continue to specify it as this.appSigningKey = config.appSigningKey || config.appKey
this.appEncryptionKey = config.appEncryptionKey || config.appKey The PR lgtm otherwise. If you could incorporate my proposed change I'll happily accept then kick out a minor release |
Good suggestion and valid point. To simplify usage, I added optional Aside, is it desirable to create a TypeScript definition? Included some jsdoc type error fixes in this PR as well. |
I would if I could. Happy to take a separate PR for that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. thanks for incorporating my suggestions
Client can only be configured to use the same private key (i.e.
key.pem
) for signature verification and assertion decryption.This PR allows different keys to be configured.