Skip to content

Issue getting upstream cert: no fake cert generated: failed to get fake upstream certificate #282

@mspublic

Description

@mspublic

I have noticed for certain sites there are issues getting the upstream cert/the browser does not connect. If I let it sit for a minute then refresh it works.

I am not sure the exact reason for this. But a potential workaround would be to fallback to generating a basic cert just with the SNI.

Aug 15 09:26:13.185 INFO auditor_name=default, daemon_name=, depth=1, intercept_type=TlsHandshake, log_type=Intercept, pid=33238, task_id=537cc6ff5b1211ef92dec87d33fb60f1, upstream=login.microsoftonline.com:443, no fake cert generated: failed to get fake upstream certificate
Aug 15 09:26:13.185 INFO c_rd_bytes=670, c_wr_bytes=0, client_addr=127.0.0.1:62715, daemon_name=, escaper=default, log_type=Task, next_bound_addr=192.168.50.94:62716, next_peer_addr=40.126.29.5:443, pid=33238, r_rd_bytes=4404, r_wr_bytes=974, ready_time=16.918ms, reason=InterceptionError, server_addr=127.0.0.1:4128, server_name=mitm, server_type=HttpProxy, stage=Relaying, start_at=2024-08-15T14:26:13.124661Z, task_id=537cc6ff5b1211ef92dec87d33fb60f1, task_type=TcpConnect, tcp_connect_spend=15.827ms, tcp_connect_tries=1, total_time=60.551ms, upstream=login.microsoftonline.com:443, wait_time=111.667µs, tls_modern interception error: tls: no fake cert generated: failed to get fake upstream certificate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions