Quiz with SEB: The config key or browser exam keys could not be validated ...

Quiz with SEB: The config key or browser exam keys could not be validated ...

by Silvio Dall'Acqua -
Number of replies: 8

Starting an Quiz in Moodle 3.9 secured by SafeExamBrowser the message "The config key or browser exam keys could not be validated. Please ensure you are using the Safe Exam Browser with correct configuration file." appears. What does that mean and how to prevent?
SEB was configured manually in Moodle will the settings in the attached image. Using SEB 3.01 on Win10.
Thank you for your help

Attachment Anmerkung 2020-08-14 090240.png
Attachment Anmerkung 2020-08-14 090241.png
Average of ratings: -
In reply to Silvio Dall'Acqua

Re: Quiz with SEB: The config key or browser exam keys could not be validated ...

by Andrew Dunn -

I see the same message. I'm running Moodle 3.9 and SEB 3.0.1 on a PC. The Launch SEB button works, and I can access the quiz, but the error message is confusing

In reply to Silvio Dall'Acqua

Re: Quiz with SEB: The config key or browser exam keys could not be validated ...

by Andrew Dunn -

I see different options as a Teacher and a Student (please see attached).  The message "The config key or browser exam keys could not be validated. Please ensure you are using the Safe Exam Browser with correct configuration file."  only appears to students, and the options to open or download SEB aren't visible to the teacher. I also attach the config settings I used.


In reply to Andrew Dunn

Re: Quiz with SEB: The config key or browser exam keys could not be validated ...

by Silvio Dall'Acqua -

I think, that's the expected behaviour. As a teacher it should be possible to attempt a quiz without using SEB.

In the meantime a made some further investigations and tried the option "Yes - upload my own config" for SEB. I followed the instructions on https://docs.moodle.org/39/en/Safe_Exam_Browser saying that you have to redownload the config file, open it in the configuration tool of SEB (v3.0.1) and then copy back the displayed browser exam key to the moodle page. But still then the message " The config key or browser key could not be validated ..." remains. Very confusing.


In reply to Silvio Dall'Acqua

Re: Quiz with SEB: The config key or browser exam keys could not be validated ...

by Mahesh Kumar -
Hey Silvio,

In the Browser Key section can we paste the Configuration keys as well? I am trying to use the config keys so that all students can participate in the exams using the same SEB Config File on any version of SEB.
In reply to Mahesh Kumar

Re: Quiz with SEB: The config key or browser exam keys could not be validated ...

by AAM FIRDAUS -

Yes, exactly my question as well. 

I have put the Config Key using the SEB 3.3.0, and tried to open the config file from a device with SEB 3.0.1, but it says the key cannot be validated. 

I thought this was the best way so the config file can be opened by any version of SB, but Config Key doesn't allow access to quiz. 

PS: I also tried to open the config file from SEB 3.3.0, but the key cannot be validated as well.    

In reply to Silvio Dall'Acqua

Re: Quiz with SEB: The config key or browser exam keys could not be validated ...

by Daniel Schneider -
In our testing, the Config Key (CK) and Browser Exam Key (BEK) checks seem to still work with current SEB for Windows versions. There are two known issues when these checks don't work:
- You cannot use Moodle embedded in an iFrame in another web platform (via LTI) with the CK and BEK.
- If your Moodle server/network configuration changes the URL of your Moodle site, the CK and BEK checks won't work. The keys are hashed with the URL of each HTTP request (web page/resource URL) on both the server (in Moodle) and on the SEB clients and the resulting value is transmitted from the client and compared to the value in the Moodle server. So if the URL of your Moodle site is different for the SEB clients than for the Moodle server, the check cannot work. Apparently this can happen for example when using a web proxy (see this reported issue):
"i've a url in the form of www.domain.com/prefix/moodle-urls, the proxy removed "prefix" so moodle server didn't know about it.
I solved this by turning off the proxy rewrite url and putting moodle inside a folder called prefix so that the full url matched the server file structure, i also turned off the $reverseproxy options in moodle config.php"

There might be other Moodle server or network configurations which change the URL, make sure to configure your systems correctly. Also students might be using some network/anti-malware analyzing tools which theoretically could change the URLs of Moodle pages for the SEB client (if only some students have that issue with the CK/BEK).

Let us know if you find a solution to your individual problems, as we could then think about mitigating against such problems in future SEB versions. Also for making sure that some SEB version doesn't have a bug relating the CK/BEK check, try it also with the macOS or iOS version (you can use any iPad or iPhone with iOS 11 or newer to try it out quickly, even if you don't have Macs).
In reply to Daniel Schneider

Ri: Re: Quiz with SEB: The config key or browser exam keys could not be validated ...

by Michele CREMASCHI -
Hi Daniel,
thanks for your support. Anyway this doesn't answer Mahesk and AAM (and mine) doubt, so I quote it here: "In the Browser Key section can we paste the Configuration keys as well?"
Otherwise, how can we set a quiz to use a specific config key?
regards
michele
In reply to Michele CREMASCHI

Re: Ri: Re: Quiz with SEB: The config key or browser exam keys could not be validated ...

by Daniel Schneider -
No, the text field is called "Allowed browser exam keys" because Browser Exam Keys can be pasted there, and not Config Keys. Currently Moodle only uses the Config Key it calculates from a Moodle-generated ("Configure manually") or uploaded ("Upload my own configuration") configuration. The idea of the Config Key is, that it doesn't have to be copy-pasted manually (if that wasn't clear from Moodle documentation page, I guess it should be clarified there).

That's the reason why I answered the original question of this thread: Why doesn't the Config Key check work and that error message is displayed.