JWT keys for self hosted site

Jump to solution
olav
Community Explorer

Hi we are trying to set up our canvas site to provide jwt keys for a LTI 1.3 application. It works well with the example keys in dynamic_settings.example, but how to make our own set of keys?

I have made the keys using rails console (as pointed to in the example  https://github.com/instructure/canvas-lms/blob/master/config/dynamic_settings.yml.example#L109) ) but there is no mentions of what to do with the private key.  If we omit storing it, Canvas just answers with "Private key is needed" when the jwt are checked.

I have extracted the private one and put in the jwt in the dynamic_settings file using rails console, but there is no hint of where to put the private part. 

Labels (3)
0 Likes
1 Solution
olav
Community Explorer
Author

Found the problem. In the exaple file it says 
"key.public_key.to_jwk(kid: Time.now.utc.iso8601).to_json"

it should be 
"key.to_jwk(kid: Time.now.utc.iso8601).to_json"

Thanks for pointing me in the right direction!

View solution in original post

0 Likes