how does one get missing keys for KEYDB.CFG?

Please post here for issues related to Blu-ray discs
Message
Author
jemima
Posts: 57
Joined: Fri Oct 06, 2023 1:16 am

how does one get missing keys for KEYDB.CFG?

#1 Post by jemima » Sat Nov 25, 2023 11:41 pm

Hey there.

I have a BluRay, which MakeMKV can already read, but plain libaacs + the well-known KEYDB.CFG can't.
It's the 4th disc (i.e. bonuses) from Avatar 2 3D (all other 3 discs of that package have their keys already in KEYDB.CFG).

Can one somehow get the key from MakeMKV or how are keys usually added to KEYDB.CFG?

Thanks,
jemima

Ezatoka
Posts: 426
Joined: Fri Dec 06, 2019 6:55 pm

Re: how does one get missing keys for KEYDB.CFG?

#2 Post by Ezatoka » Sun Nov 26, 2023 11:29 am

How up to date is your keydb.cfg? Looking at the files from http://fvonline-db.bplaced.net/ it seems, there are several entries for Avatar 2 3D. Even four different ones for "AVATAR_THE_WAY_OF_WATER_BONUS".

If they don't help, you probably would need the help of the https://forum.doom9.org/showthread.php?t=172472 FindVUK program, which though works with DVDfab, not MakeMKV to extract keys.

MrPenguin
Posts: 819
Joined: Thu Oct 19, 2023 11:31 pm

Re: how does one get missing keys for KEYDB.CFG?

#3 Post by MrPenguin » Sun Nov 26, 2023 12:06 pm

The honking sound in the base of my brain is telling me you might also be a Linux user, in which case FindVUK will only be of limited use to you.

Check PM...

jemima
Posts: 57
Joined: Fri Oct 06, 2023 1:16 am

Re: how does one get missing keys for KEYDB.CFG?

#4 Post by jemima » Sun Nov 26, 2023 7:03 pm

Thanks guys.

I'll have a look :-)

ryodep56
Posts: 3
Joined: Tue Oct 29, 2024 3:13 pm

Re: how does one get missing keys for KEYDB.CFG?

#5 Post by ryodep56 » Tue Oct 29, 2024 3:48 pm

MrPenguin wrote:
Sun Nov 26, 2023 12:06 pm
The honking sound in the base of my brain is telling me you might also be a Linux user, in which case FindVUK will only be of limited use to you.

Check PM...
Hey there,

I am looking for a similar solution as a Linux user. Any chance to add the VUK to an entry of KEYDB.cfg, which is already there but only contains U: CPS Unit Key ( https://github.com/rraptorr/libaacs/blo ... /KEYDB.cfg )? I came across https://forum.doom9.org/showthread.php? ... ost1979303 but it does not work for me (maybe outdated?) on Debian 12.

The UHD disc is however playable through VLC after following the instructions of archlinux ( https://wiki.archlinux.org/title/Blu-ray ) but I'd very much like to make an MKV. :)

Thank you!

ryodep56
Posts: 3
Joined: Tue Oct 29, 2024 3:13 pm

Re: how does one get missing keys for KEYDB.CFG?

#6 Post by ryodep56 » Thu Oct 31, 2024 2:52 pm

MrPenguin wrote:
Sun Nov 26, 2023 12:06 pm
The honking sound in the base of my brain is telling me you might also be a Linux user, in which case FindVUK will only be of limited use to you.

Check PM...
Hey there,

Any advice for another Linux user? :)

Thanks!

MrPenguin
Posts: 819
Joined: Thu Oct 19, 2023 11:31 pm

Re: how does one get missing keys for KEYDB.CFG?

#7 Post by MrPenguin » Sat Nov 09, 2024 11:51 am

ryodep56 wrote:
Thu Oct 31, 2024 2:52 pm
Any advice for another Linux user? :)
Which particular disk are you talking about? Can you post its DiscID from KEYDB please?

The get-rdk.sh script on Doom9 is intended for non-UHD disks. You cannot use it to discover a UHD disk's RDK because there are no publicly known host certificates for AACSv2.

ezzieyguywuf
Posts: 9
Joined: Thu Apr 10, 2025 3:06 am

Re: how does one get missing keys for KEYDB.CFG?

#8 Post by ezzieyguywuf » Fri Apr 11, 2025 1:12 am

another linux user here looking for the same help.
Which particular disk are you talking about? Can you post its DiscID from KEYDB please?
I'm talking about Disc 1 of The Boondocks The Complete First Season set.

I don't know how to find the DiscID in KEYDB since the disc isn't in there.

MrPenguin
Posts: 819
Joined: Thu Oct 19, 2023 11:31 pm

Re: how does one get missing keys for KEYDB.CFG?

#9 Post by MrPenguin » Fri Apr 11, 2025 10:02 am

ezzieyguywuf wrote:
Fri Apr 11, 2025 1:12 am
I don't know how to find the DiscID in KEYDB since the disc isn't in there.
That's the SHA1 hash of the disk's AACS/Unit_Key_RO.inf file:

Code: Select all

$ sha1sum AACS/Unit_Key_RO.inf
If you have the physical disk then you should be able to execute FindVUK.exe inside wineconsole to upload the disk's entry into KEYDB:

Code: Select all

> findvuk validateDisc drive=<whatever-your-UHD-drive-letter-is>
Your KEYDB.cfg entry would still need to contain an entry for your disk to validate, of course.

ezzieyguywuf
Posts: 9
Joined: Thu Apr 10, 2025 3:06 am

Re: how does one get missing keys for KEYDB.CFG?

#10 Post by ezzieyguywuf » Sat Apr 12, 2025 3:35 am

Thanks for your reply!

I was able to run `FindVUK.exe` with the following:

Code: Select all

wine FindVUK.exe /validateDisc /drive=g
I found the appropriate drive by examining the output of:

Code: Select all

ls -la ${WINEPREFIX}/dosdrives
however this command still ends up hanging:

Code: Select all

AACS folder on disc in drive >g< is not accessible - keep waiting for disc to appear (abort with ESC)
from https://forum.doom9.org/showthread.php?t=172472 it looks like I need to buy a license to something called dvdfab?

Is there a way to use this using just makemkv?

MartyMcNuts
Posts: 3276
Joined: Wed Nov 22, 2017 11:45 pm

Re: how does one get missing keys for KEYDB.CFG?

#11 Post by MartyMcNuts » Sat Apr 12, 2025 3:56 am

ezzieyguywuf wrote:
Sat Apr 12, 2025 3:35 am
Thanks for your reply!

I was able to run `FindVUK.exe` with the following:

Code: Select all

wine FindVUK.exe /validateDisc /drive=g
I found the appropriate drive by examining the output of:

Code: Select all

ls -la ${WINEPREFIX}/dosdrives
however this command still ends up hanging:

Code: Select all

AACS folder on disc in drive >g< is not accessible - keep waiting for disc to appear (abort with ESC)
from https://forum.doom9.org/showthread.php?t=172472 it looks like I need to buy a license to something called dvdfab?

Is there a way to use this using just makemkv?
FindVUK uses one of the DVDFab products to find the VUK or unit/title keys.
Cheers :D
----------------------------------------------------------------------------------------------------------------------------
For UHD enabled drives (AU/NZ/SG + Others) & DIY Single Drive Flasher (WW): https://uhdenableddrives.com

ezzieyguywuf
Posts: 9
Joined: Thu Apr 10, 2025 3:06 am

Re: how does one get missing keys for KEYDB.CFG?

#12 Post by ezzieyguywuf » Sat Apr 12, 2025 4:15 am

ok, thanks for your reply.

Just to be clear, from what I can see dvdfab costs $200+, so my only option is to either pay this fee or use makemkv, I have no other recourse for accessing my bluray?

Does makemkv contribute vuks to the FindVUKS datasabase or nah?

MartyMcNuts
Posts: 3276
Joined: Wed Nov 22, 2017 11:45 pm

Re: how does one get missing keys for KEYDB.CFG?

#13 Post by MartyMcNuts » Sat Apr 12, 2025 6:19 am

ezzieyguywuf wrote:
Sat Apr 12, 2025 4:15 am
ok, thanks for your reply.

Just to be clear, from what I can see dvdfab costs $200+, so my only option is to either pay this fee or use makemkv, I have no other recourse for accessing my bluray?

Does makemkv contribute vuks to the FindVUKS datasabase or nah?
No, MakeMKV does not.

FindVUK uses any one of:

DVDFab
DVDFab Passkey
DVDFab MediaPlayer

I wouldn't buy it either. Way, way overpriced software that isn't that good anyway.
Cheers :D
----------------------------------------------------------------------------------------------------------------------------
For UHD enabled drives (AU/NZ/SG + Others) & DIY Single Drive Flasher (WW): https://uhdenableddrives.com

keydb_helper
Posts: 243
Joined: Fri Sep 06, 2024 4:47 pm

Re: how does one get missing keys for KEYDB.CFG?

#14 Post by keydb_helper » Sat Apr 12, 2025 7:16 am

MartyMcNuts wrote:
Sat Apr 12, 2025 6:19 am
FindVUK uses any one of:

DVDFab
DVDFab Passkey
DVDFab MediaPlayer
If you have suitable device keys and a host certificate you can derive the keys for 1080p discs using FindVUK in aacskeys mode. This uses the opensource aacskeys utility to calculate keys independently of any 3rd party commercial software.

Suitable device keys are publicly available on the Doom9 forum and they work with even the latest AACS1.0 discs (including MKBv82).

I don't believe there is a publicly available, unrevoked AACS1.0 host certificate at this stage, but you can work around this by extracting the volume ID (VID) of your discs with MakeMKV. Once you have the VID you can pass it to aacskeys and it will calculate all of the keys for your disc. I believe there are instructions which cover this use case on the Doom9 forum.

If you have any AACS2.0 discs and an Asus/LG drive you can always post the disc dumps to this forum and the keys will be added to the public keydb. This option is not currently available for Pioneer drives.

ezzieyguywuf
Posts: 9
Joined: Thu Apr 10, 2025 3:06 am

Re: how does one get missing keys for KEYDB.CFG?

#15 Post by ezzieyguywuf » Mon Apr 14, 2025 1:20 am

keydb_helper wrote:
Sat Apr 12, 2025 7:16 am
If you have suitable device keys and a host certificate you can derive the keys for 1080p discs using FindVUK in aacskeys mode. This uses the opensource aacskeys utility to calculate keys independently of any 3rd party commercial software.

Suitable device keys are publicly available on the Doom9 forum and they work with even the latest AACS1.0 discs (including MKBv82).

I don't believe there is a publicly available, unrevoked AACS1.0 host certificate at this stage, but you can work around this by extracting the volume ID (VID) of your discs with MakeMKV. Once you have the VID you can pass it to aacskeys and it will calculate all of the keys for your disc. I believe there are instructions which cover this use case on the Doom9 forum.

If you have any AACS2.0 discs and an Asus/LG drive you can always post the disc dumps to this forum and the keys will be added to the public keydb. This option is not currently available for Pioneer drives.
Is this the relevant part of the makemkv output to get the volume id?

Code: Select all

Using LibreDrive mode (v01.0 id=22C9CC746265)
Or is there something else I should be looking for?

For the device keys, what search terms would I use to find the appropriate ones, and how do I use this device key?

Thanks for the help this gives me hope!

Post Reply