xref: /aosp_15_r20/external/webrtc/tools_webrtc/sslroots/README.md (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1*d9f75844SAndroid Build Coastguard Worker# Generate rtc_base/ssl_roots.h
2*d9f75844SAndroid Build Coastguard Worker
3*d9f75844SAndroid Build Coastguard WorkerThis directory contains a script to generate the content of
4*d9f75844SAndroid Build Coastguard Worker[rtc_base/ssl_roots.h][ssl-roots-header], to update the SSL roots shipped
5*d9f75844SAndroid Build Coastguard Workerby WebRTC follow this instructions:
6*d9f75844SAndroid Build Coastguard Worker
7*d9f75844SAndroid Build Coastguard Worker1. Download roots.pem from [pki.goog][pki-goog] or [curl.se][mozilla-cacert]
8*d9f75844SAndroid Build Coastguard Worker
9*d9f75844SAndroid Build Coastguard Worker2. Launch the script:
10*d9f75844SAndroid Build Coastguard Worker
11*d9f75844SAndroid Build Coastguard Worker```
12*d9f75844SAndroid Build Coastguard Worker$ vpython3 tools_webrtc/sslroots/generate_sslroots.py <the pem file>
13*d9f75844SAndroid Build Coastguard Worker```
14*d9f75844SAndroid Build Coastguard Worker
15*d9f75844SAndroid Build Coastguard Worker3. Step 2 should have generated an ssl_roots.h file right next to the pem file.
16*d9f75844SAndroid Build Coastguard Worker
17*d9f75844SAndroid Build Coastguard Worker4. Overwrite rtc_base/ssl_roots.h with the newly generated one.
18*d9f75844SAndroid Build Coastguard Worker
19*d9f75844SAndroid Build Coastguard Worker[ssl-roots-header]: https://cs.chromium.org/chromium/src/third_party/webrtc/rtc_base/ssl_roots.h
20*d9f75844SAndroid Build Coastguard Worker[pki-goog]: https://www.google.com/url?q=https://pki.google.com/roots.pem
21*d9f75844SAndroid Build Coastguard Worker[mozila-cacert]: https://curl.se/ca/cacert.pem
22