<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#26a269" bgcolor="#000000">
    Peace, my squid certificate has expired, so i regenerated a new one
    and tried to enable ssl bump without success.<br>
    <br>
    here is the configuration:<br>
    <br>
    http_port 8080 ssl-bump  cert=/etc/squid/certs/myCA.pem
    generate-host-certificates=on dynamic_cert_mem_cache_size=8MB<br>
    <br>
    acl     tls_s1_connect            at_step SslBump1<br>
    acl     tls_s2_client_hello     at_step SslBump2<br>
    acl     tls_s3_server_hello     at_step SslBump3<br>
    <br>
    # define acls for sites that must not be actively bumped<br>
    <br>
    acl     tls_allowed_hsts        ssl::server_name           
     .akamaihd.net<br>
    acl     tls_allowed_hsts        ssl::server_name           
     .proxy.skko.by<br>
    acl     tls_server_is_bank         ssl::server_name           
    "/usr/local/ufdbguard/blacklists/finance/domains.squidsplice"<br>
    acl     tls_to_splice             any-of                       
     tls_allowed_hsts        tls_server_is_bank<br>
    <br>
    # TLS/SSL bumping steps<br>
    <br>
    ssl_bump         peek                tls_s1_connect         # peek
    at TLS/SSL connect data<br>
    ssl_bump         splice                 tls_to_splice        #
    splice some: no active bump<br>
    ssl_bump         stare                 all                    #
    stare(peek) at server<br>
                                                            # properties
    of the webserver<br>
    ssl_bump         bump                                    # bump if
    we can (if the stare succeeded)<br>
    <br>
    ssl_bump peek tls_s1_connect<br>
    ssl_bump splice all<br>
    <br>
    <br>
    #ssl_bump peek all<br>
    ####ssl_bump splice all<br>
    <br>
    <br>
    sslcrtd_program /usr/libexec/squid/security_file_certgen -s
    /var/cache/squid/ssl_db -M 4M<br>
    sslcrtd_children 5<br>
    <br>
    ssl_bump server-first all<br>
    <br>
    sslproxy_cert_error allow all<br>
    <br>
    that produces in cache.log:<br>
    <br>
    Logfile: opening log daemon:/var/log/squid/access.log<br>
    2026/07/14 07:37:45 kid1| Logfile Daemon: opening log
    /var/log/squid/access.log<br>
    2026/07/14 07:37:45 kid1| Unlinkd pipe opened on FD 39<br>
    2026/07/14 07:37:45 kid1| Local cache digest enabled;
    rebuild/rewrite every 3600/3600 sec<br>
    2026/07/14 07:37:45 kid1| Store logging disabled<br>
    2026/07/14 07:37:45 kid1| Swap maxSize 3072000 + 983040 KB,
    estimated 311926 objects<br>
    2026/07/14 07:37:45 kid1| Target number of buckets: 15596<br>
    2026/07/14 07:37:45 kid1| Using 16384 Store buckets<br>
    2026/07/14 07:37:45 kid1| Max Mem  size: 983040 KB<br>
    2026/07/14 07:37:45 kid1| Max Swap size: 3072000 KB<br>
    2026/07/14 07:37:45 kid1| Rebuilding storage in /var/cache/squid
    (clean log)<br>
    2026/07/14 07:37:45 kid1| Using Least Load store dir selection<br>
    2026/07/14 07:37:45 kid1| Set Current Directory to /var/cache/squid<br>
    2026/07/14 07:37:45 kid1| Finished loading MIME types and icons.<br>
    2026/07/14 07:37:45 kid1| HTCP Disabled.<br>
    2026/07/14 07:37:45 kid1| Pinger socket opened on FD 44<br>
    2026/07/14 07:37:45 kid1| Squid plugin modules loaded: 0<br>
    2026/07/14 07:37:45 kid1| Adaptation support is off.<br>
    2026/07/14 07:37:45 kid1| Accepting SSL bumped HTTP Socket
    connections at conn28 local=0.0.0.0:8080 remote=[::] FD 42 flags=9<br>
        listening port: 8080<br>
    2026/07/14 07:37:45 pinger| WARNING: BCP 177 violation. Detected
    non-functional IPv6 loopback.<br>
    2026/07/14 07:37:45 pinger| Initialising ICMP pinger ...<br>
    2026/07/14 07:37:45 pinger| ICMP socket opened.<br>
    2026/07/14 07:37:45 pinger| ICMPv6 socket opened<br>
    2026/07/14 07:37:45 kid1| Indexing cache entries: 1.83% (4000 out of
    218271)<br>
    2026/07/14 07:37:48 kid1| Done reading /var/cache/squid swaplog
    (218270 entries)<br>
    2026/07/14 07:37:48 kid1| Finished rebuilding storage from disk.<br>
         218270 Entries scanned<br>
              0 Invalid entries<br>
              0 With invalid flags<br>
         218270 Objects loaded<br>
              0 Objects expired<br>
              0 Objects canceled<br>
              0 Duplicate URLs purged<br>
              0 Swapfile clashes avoided<br>
        Took 3.01 seconds (72461.41 objects/sec).<br>
    2026/07/14 07:37:48 kid1| Beginning Validation Procedure<br>
    2026/07/14 07:37:48 kid1| Completed Validation Procedure<br>
        Validated 218255 Entries<br>
        store_swap_size = 2764788.00 KB<br>
    2026/07/14 07:37:49 kid1| storeLateRelease: released 0 objects<br>
    2026/07/14 07:37:49 kid1| WARNING: sslcrtd_program #Hlpr1 exited<br>
    2026/07/14 07:37:49 kid1| Too few sslcrtd_program processes are
    running (need 1/5)<br>
        active processes: 4<br>
        processes configured to start at (re)configuration: 5<br>
    2026/07/14 07:37:49 kid1| Closing HTTP(S) port 0.0.0.0:8080<br>
        listening port: 8080<br>
    2026/07/14 07:37:49 kid1| storeDirWriteCleanLogs: Starting...<br>
    2026/07/14 07:37:49 kid1|     65536 entries written so far.<br>
    2026/07/14 07:37:49 kid1|    131072 entries written so far.<br>
    2026/07/14 07:37:49 kid1|    196608 entries written so far.<br>
    2026/07/14 07:37:49 kid1|   Finished.  Wrote 218270 entries.<br>
    2026/07/14 07:37:49 kid1|   Took 0.08 seconds (2835117.16
    entries/sec).<br>
    2026/07/14 07:37:49 kid1| FATAL: The sslcrtd_program helpers are
    crashing too rapidly, need help!<br>
    2026/07/14 07:37:49 kid1| Squid Cache (Version 7.6): Terminated
    abnormally.<br>
    CPU Usage: 3.853 seconds = 2.203 user + 1.651 sys<br>
    Maximum Resident Size: 271744 KB<br>
    Page faults with physical i/o: 0<br>
    2026/07/14 07:37:49 kid1| Closing Pinger socket on FD 44<br>
    2026/07/14 07:37:49 kid1| WARNING: BCP 177 violation. Detected
    non-functional IPv6 loopback.<br>
    2026/07/14 07:37:49 kid1| aclIpParseIpData: IPv6 has not been
    enabled.<br>
        acl name: to_localhost<br>
        configuration context: Default Configuration(15) acl<br>
    2026/07/14 07:37:49 kid1| aclIpParseIpData: IPv6 has not been
    enabled.<br>
        acl name: to_localhost<br>
        configuration context: Default Configuration(15) acl<br>
    2026/07/14 07:37:49 kid1| aclIpParseIpData: IPv6 has not been
    enabled.<br>
        acl name: to_linklocal<br>
        configuration context: Default Configuration(16) acl<br>
    2026/07/14 07:37:49 kid1| Processing Configuration File:
    /etc/squid/squid.conf (depth 0)<br>
    2026/07/14 07:37:49 kid1| Set Current Directory to /var/cache/squid<br>
    2026/07/14 07:37:49 kid1| Starting Squid Cache version 7.6 for
    x86_64-suse-linux-gnu...<br>
    2026/07/14 07:37:49 kid1| Service Name: squid<br>
    2026/07/14 07:37:49 kid1| Process ID 54511<br>
    2026/07/14 07:37:49 kid1| Process Roles: worker<br>
    2026/07/14 07:37:49 kid1| With 4096 file descriptors available<br>
    2026/07/14 07:37:49 kid1| Initializing IP Cache...<br>
    2026/07/14 07:37:49 kid1| DNS IPv4 socket created at 0.0.0.0, FD 7<br>
    2026/07/14 07:37:49 kid1| Adding nameserver 10.86.0.26 from
    /etc/resolv.conf<br>
    2026/07/14 07:37:49 kid1| Adding nameserver 10.10.10.3 from
    /etc/resolv.conf<br>
    2026/07/14 07:37:49 kid1| helperOpenServers: Starting 5/5
    'security_file_certgen' processes<br>
    2026/07/14 07:37:49 kid1| helperOpenServers: Starting 8/16
    'ufdbgclient' processes<br>
    2026/07/14 07:37:49 sslcrtd_program| FATAL: Cannot generate
    certificates: Unknown bytes unit: M<br>
        exception location: security_file_certgen.cc(101)
    parseBytesUnits<br>
    2026/07/14 07:37:49 sslcrtd_program| FATAL: Cannot generate
    certificates: Unknown bytes unit: M<br>
        exception location: security_file_certgen.cc(101)
    parseBytesUnits<br>
    2026/07/14 07:37:49 sslcrtd_program| FATAL: Cannot generate
    certificates: Unknown bytes unit: M<br>
        exception location: security_file_certgen.cc(101)
    parseBytesUnits<br>
    2026/07/14 07:37:49 sslcrtd_program| FATAL: Cannot generate
    certificates: Unknown bytes unit: M<br>
        exception location: security_file_certgen.cc(101)
    parseBytesUnits<br>
    2026/07/14 07:37:49 sslcrtd_program| FATAL: Cannot generate
    certificates: Unknown bytes unit: M<br>
        exception location: security_file_certgen.cc(101)
    parseBytesUnits<br>
    <br>
    running the command:<br>
    <br>
    sudo /usr/libexec/squid/security_file_certgen -c -s
    /var/cache/squid/ssl_db/certs -M 4MB<br>
    Initialization SSL db...<br>
    2026/07/14 07:42:00 sslcrtd_program| FATAL: Cannot generate
    certificates: Cannot create /var/cache/squid/ssl_db/certs<br>
        exception location: certificate_db.cc(374) Create<br>
    <br>
    /var/cache/squid/ssl_db/certs certs is empty<br>
    <br>
    how to solve the problem?
  </body>
</html>