Skip to content

Commit

Permalink
feat(unetstack.go): expose mitmx CA cert (#38)
Browse files Browse the repository at this point in the history
Required to write some tests for
ooni/probe#2531
  • Loading branch information
bassosimone committed Sep 15, 2023
1 parent 85d9625 commit ab0dc13
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions unetstack.go
Expand Up @@ -104,6 +104,11 @@ func NewUNetStack(
return stack, nil
}

// CACert implements TLSMITMProvider.
func (gs *UNetStack) CACert() *x509.Certificate {
return gs.mitmConfig.Cert
}

// TLSMITMConfig exposes the underlying [TLSMITMConfig].
func (gs *UNetStack) TLSMITMConfig() *TLSMITMConfig {
return gs.mitmConfig
Expand Down

0 comments on commit ab0dc13

Please sign in to comment.