• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Generate rtc_base/ssl_roots.h
2
3This directory contains a script to generate the content of
4[rtc_base/ssl_roots.h][ssl-roots-header], to update the SSL roots shipped
5by WebRTC follow this instructions:
6
71. Download roots.pem from [pki.goog][pki-goog].
8
92. Launch the script:
10
11```
12$ python tools_webrtc/sslroots/generate_sslroots.py roots.pem
13```
14
153. Step 2 should have generated an ssl_roots.h file right next to roots.pem.
16
174. Open rtc_base/ssl_roots.h, manually remove the old certificates and paste
18   the ones from the ssl_roots.h file.
19
205. Delete the generated ssl_roots.h and roots.pem before creating the CL.
21
22[ssl-roots-header]: https://cs.chromium.org/chromium/src/third_party/webrtc/rtc_base/ssl_roots.h
23[pki-goog]: https://www.google.com/url?q=https://pki.google.com/roots.pem
24