r/oculus•
CrossVR

Only YOU can prevent certificate expiration

Over on r/Vive user u/Tiver discovered the reason why the Oculus certificates expired: They forgot to timestamp their signatures. It's standard practice to timestamp code signatures so that validity of the certificate isn't checked against the current time, instead the validity will be checked against the timestamp so the signature doesn't expire.

After applying the recent Oculus patch it looks like important runtime files still aren't timestamped meaning this could happen again in 2020. Fortunately you don't need Oculus' private key to timestamp their signatures, you can do it if you'd like to.

You can use the Microsoft signtool together with a batch script that attempts to timestamp several important Oculus Runtime files. You must run the batch script as admin so that it can access files in your Program Files. You'll have to do this after every Oculus update until they begin to timestamp their runtime themselves again.

Download it here

This is completely optional, it's just a fun little experiment. Timestamping should be harmless, still you run it at your own risk.

Posted Mar 8, 2018, 1:39 PM UTC · edited

7116
kriegeeerΓ ⊢ me : helper•

We are aware of the lack of countersignature, and will be fixing that in a later update. We didn’t want to hold back the patch for that.

44
Neovy•

Awesome flair, btw

6
kriegeeerΓ ⊢ me : helper•

Thanks :) It was an instant winner when I thought of it.

7
CalebCristeRealityCheckVR Developments•

i had to double look but yes, totally a winner! :D

2
noorbeast•

While informative given the scope of the current debacle it is reasonable for Rift owners to actually expect Oculus to learn from it and fix the issue permanently as soon as this patch has got over the initial hurdle of getting Rift owners up and running again.

17
CrossVROPRevive Developer•

I'm hoping this will encourage Oculus to start timestamping again, as they used to do it in the past. Some of their older runtime files are timestamped and didn't expire yesterday.

5
ggodinVirtual Desktop Developer•

When they sign their dlls and executables, Oculus is likely signing them with SignTool already. My guess is that starting with version 1.23 they removed the “/t http://timestamp.digicert.com” command-line option. I’m pretty sure the next revisions of those dlls/exes will be time stamped properly.

12
simply_potato•

Nice tool. Note: For this to work you'll presumably have to run the signtool before the next cert expires in 2020 or it won't sign. You can run it now, then backup the signed Oculus files and you should be able to reinstall post-cert expiration, restore the signed files and it should work.

PS: Tiver wasn't the first to discover it, and I doubt I was either.

5
CrossVROPRevive Developer•

For this to work you'll presumably have to run the signtool before the next cert expires in 2020 or it won't sign.

Indeed, if you run the tool after 2020 the timestamp will be outside the validity period. It will actually overwrite the timestamp meaning you could make a signature invalid if you do that.

Thus it's important that if their certificate does expire again you do not run the tool again until they re-certify.

2
Mace404Kickstarter Backer•

The files were timestamped using a countersignature, till Oculus version 1.23. (some still are, but before 1.23 they were all timestamped)
They use DigiCert/Symantec so maybe they were preparing migration to a different CA.
(see https://www.symantec.com/connect/blogs/information-replacement-symantec-ssltls-certificates)

2
CrossVROPRevive Developer•

The thing is, it doesn't matter which authority timestamps the signature, so why stop even during a migration?

3
boofrickenhoo•

Am I correct in assuming that this would have happened regardless of having automatic updates turned on or not? Or would everything have continued to function if you didn't download yesterday's update?

1
CrossVROPRevive Developer•

If you still had a version before 1.23 installed you likely wouldn't have been affected.

2
Esgalen•

Or in 2020 Rift users can politely remind Oculus about their certificates. ;)

1
[deleted]•

[deleted]

1
PluckerpluckDK1->Rift+Vive•

This is actually a really nice thing to know about. I never knew you could timestamp things yourself.

I mean, it's not that useful, but knowledge is always great :P

1
[deleted]•

[deleted]

-2†
PrAyTeLLa•

Amusing that r/vive figured out the reason

-13