codeboardio / codeboard

Codeboard is a web-based IDE to teach programming in the classroom. Part of the codeboard.io project.
MIT License
56 stars 19 forks source link

codeboard LTI and OpenEdx #9

Open Muneera-Salah opened 3 years ago

Muneera-Salah commented 3 years ago

Hi codeboarder, I use https://codeboard.io/ site to use LTI with OpenEdx. I have an issue with LTI , after I set up LTI with OpenEdx I receive this message as the screenshot below

{"name":"OperationalError","message":"Hostname/IP doesn't match certificate's altnames: \"Host: localhost. is not in the cert's altnames: DNS:codeboard.io, DNS:www.codeboard.io\"","cause":{"reason":"Host: localhost. is not in the cert's altnames: DNS:codeboard.io, DNS:www.codeboard.io","host":"localhost","cert":{"subject":{"CN":"codeboard.io"},"issuer":{"C":"FR","ST":"Paris","L":"Paris","O":"Gandi","CN":"Gandi Standard SSL CA 2"},"subjectaltname":"DNS:codeboard.io, DNS:www.codeboard.io","infoAccess":{"CA Issuers - URI":["http://crt.usertrust.com/GandiStandardSSLCA2.crt"],"OCSP - URI":["http://ocsp.usertrust.com"]},"modulus":

Screenshot from 2021-04-18 11-52-29 is this issue from your side or mine? appreciate your help. Thank you

adilek commented 3 years ago

I believe you are running your app from your local machine which does not have SSL certificate. Can you confirm?

Muneera-Salah commented 3 years ago

no not local from cloud (live site)

Muneera-Salah commented 3 years ago

I tested codeboardio LTI in https://ltiapps.net/test/tc.php it's working very well. any advice on solving this issue at OpenEdx?

adilek commented 3 years ago

Did you check OpenEDX configuration? I remember that openEdx conf has some hostname params. May be localhost is recorded there?

Muneera-Salah commented 3 years ago

yes, I checked lms.env.json but I do not if there are any specific changes need?

adilek commented 3 years ago

Is this screenshot from student account (in openedx) or admin account? If it is from admin then besides lms.env.json there is something different too. I forgot the names to be honest but openedx has hostname recorded in several places in those configs.

Muneera-Salah commented 3 years ago

as a student and admin, yes there are several places of config Thank you, I'll search more about it.