Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BearSSLTrustedAnchors

A trusted CA certificates generator for BearSSL applications, providing a ready-to-use C source file with trusted root certificates compatible with virtually any website.

Latest Release

File Version Date
BearSSLTrustedAnchors.c 2025-8-6 2025/08/06

Overview

This project generates trusted anchor certificates for BearSSL from multiple CA sources, maximizing compatibility with public websites, government portals, and enterprise services. The generated C source file contains all trusted root certificates in a format that can be directly compiled into BearSSL applications.

Certificate Sources

The trusted anchors are generated by combining:

# Source Description
1 Mozilla CA Bundle (curl.se/ca/cacert.pem) Primary bundle — covers the vast majority of public websites
2 System CA bundle (auto-detected) Adds national, governmental, and corporate CAs not present in Mozilla's bundle

System bundle auto-detection order:

Path Distribution
/etc/ssl/certs/ca-certificates.crt Debian / Ubuntu
/etc/pki/tls/certs/ca-bundle.crt RHEL / CentOS / Fedora
/etc/ssl/ca-bundle.pem openSUSE
/etc/ssl/cert.pem Alpine / macOS

Usage

Generating New Certificates

To generate an updated certificate file:

sh generator.sh

This script will:

  1. Download the latest CA certificate bundle from Mozilla
  2. Merge it with the system CA bundle (if available)
  3. Convert the combined bundle to BearSSL format using the brssl tool
  4. Generate the BearSSLTrustedAnchors.c file

Requirements

  • BearSSL tools (brssl)
  • curl for downloading certificates
  • bash shell

About

Trusted Anchors generator for BearSSL

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages