Created
January 18, 2017 09:48
-
-
Save rgerganov/85530c8f96d20225912f68df876d6d8d to your computer and use it in GitHub Desktop.
libnss patch to make Chrome accept VIO's certificate on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- nss-3.23/nss/lib/certdb/certdb.c 2016-02-26 22:51:11.000000000 +0200 | |
+++ /opt/src/nss-3.23/nss/lib/certdb/certdb.c 2017-01-18 11:36:57.009855896 +0200 | |
@@ -1198,11 +1198,12 @@ | |
/* turn off the special bit */ | |
requiredUsage &= (~KU_KEY_AGREEMENT_OR_ENCIPHERMENT); | |
switch (keyType) { | |
case rsaKey: | |
- requiredUsage |= KU_KEY_ENCIPHERMENT; | |
+ // hack for VIO's certificate | |
+ //requiredUsage |= KU_KEY_ENCIPHERMENT; | |
break; | |
case dsaKey: | |
requiredUsage |= KU_DIGITAL_SIGNATURE; | |
break; | |
case dhKey: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment