Commit 579fc67
authored
crypto: support --use-system-ca on non-Windows and non-macOS
On other platforms, load from the OpenSSL default certificate
file and diretory.
This is different from --use-openssl-ca in that it caches
the certificates on first load, instead of always reading
from disk every time a new root store is needed.
When used together with the statically-linked OpenSSL, the
default configuration usually leads to this behavior:
- If SSL_CERT_FILE is used, load from SSL_CERT_FILE. Otherwise
load from /etc/ssl/cert.pem
- If SSL_CERT_DIR is used, load from all the files under
SSL_CERT_DIR. Otherwise, load from all the files under
/etc/ssl/certs
PR-URL: #57009
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: James M Snell <[email protected]>1 parent 794f35f commit 579fc67
File tree
3 files changed
+111
-15
lines changed- doc/api
- src/crypto
- test/parallel
3 files changed
+111
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2868 | 2868 | | |
2869 | 2869 | | |
2870 | 2870 | | |
2871 | | - | |
| 2871 | + | |
| 2872 | + | |
| 2873 | + | |
| 2874 | + | |
2872 | 2875 | | |
2873 | | - | |
2874 | | - | |
| 2876 | + | |
| 2877 | + | |
2875 | 2878 | | |
2876 | | - | |
| 2879 | + | |
2877 | 2880 | | |
2878 | 2881 | | |
2879 | 2882 | | |
| |||
2883 | 2886 | | |
2884 | 2887 | | |
2885 | 2888 | | |
2886 | | - | |
2887 | | - | |
| 2889 | + | |
| 2890 | + | |
2888 | 2891 | | |
2889 | 2892 | | |
2890 | 2893 | | |
| |||
2899 | 2902 | | |
2900 | 2903 | | |
2901 | 2904 | | |
2902 | | - | |
2903 | | - | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
| 2917 | + | |
2904 | 2918 | | |
2905 | 2919 | | |
2906 | 2920 | | |
| |||
3541 | 3555 | | |
3542 | 3556 | | |
3543 | 3557 | | |
3544 | | - | |
| 3558 | + | |
| 3559 | + | |
3545 | 3560 | | |
3546 | 3561 | | |
3547 | 3562 | | |
| |||
3554 | 3569 | | |
3555 | 3570 | | |
3556 | 3571 | | |
3557 | | - | |
| 3572 | + | |
| 3573 | + | |
3558 | 3574 | | |
3559 | 3575 | | |
3560 | 3576 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
648 | 716 | | |
649 | 717 | | |
650 | 718 | | |
| |||
685 | 753 | | |
686 | 754 | | |
687 | 755 | | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
688 | 759 | | |
689 | 760 | | |
690 | 761 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 10 | | |
15 | 11 | | |
16 | 12 | | |
| |||
34 | 30 | | |
35 | 31 | | |
36 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
37 | 46 | | |
38 | 47 | | |
39 | 48 | | |
| |||
0 commit comments