Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sakurasan/scf-proxy
/ functions
Functions
46 in github.com/Sakurasan/scf-proxy
⨍
Functions
46
◇
Types & classes
10
↓ 5 callers
Method
Close
()
pkg/mitm/lisener.go:23
↓ 3 callers
Function
LoadCertificateFromPEMBytes
LoadCertificateFromPEMBytes loads a Certificate from a byte array in PEM format
pkg/mitm/keyman.go:205
↓ 3 callers
Method
PEMEncoded
PEMEncoded encodes the PrivateKey in PEM
pkg/mitm/keyman.go:76
↓ 3 callers
Function
handlerErr
handleErr 处理错误
pkg/scf/scfhandler.go:82
↓ 2 callers
Method
Get
Get returns the currently cached value for the given key, as long as it hasn't expired. If the key was never set, or has expired, found will be false
pkg/mitm/Cache.go:31
↓ 2 callers
Function
HandlerHttp
(w http.ResponseWriter, r *http.Request)
pkg/scf/handler.go:17
↓ 2 callers
Method
Set
Set sets a value in the cache with an expiration of now + ttl.
pkg/mitm/Cache.go:45
↓ 2 callers
Method
TLSCertificateFor
TLSCertificateFor generates a certificate useful for TLS use based on the given parameters. These certs are usable for key encipherment and digital s
pkg/mitm/keyman.go:150
↓ 2 callers
Method
WriteToFile
WriteToFile writes the PEM-encoded PrivateKey to the given file
pkg/mitm/keyman.go:81
↓ 2 callers
Function
bytesToCert
(derBytes []byte)
pkg/mitm/keyman.go:301
↓ 2 callers
Method
pemBlock
()
pkg/mitm/keyman.go:95
↓ 2 callers
Method
pemBlock
()
pkg/mitm/keyman.go:309
↓ 2 callers
Function
respBadGateway
(resp http.ResponseWriter, msg string)
pkg/mitm/mitm.go:118
↓ 1 callers
Method
Certificate
******************************************************************************* * Certificate Functions ********************************************
pkg/mitm/keyman.go:108
↓ 1 callers
Method
CertificateForKey
* CertificateForKey() generates a certificate for the given Public Key based on the given template and signed by the given issuer. If issuer is nil,
pkg/mitm/keyman.go:117
↓ 1 callers
Method
ExpiresBefore
(time time.Time)
pkg/mitm/keyman.go:297
↓ 1 callers
Function
GeneratePK
******************************************************************************* * Private Key Functions ********************************************
pkg/mitm/keyman.go:46
↓ 1 callers
Function
Handler
(ctx context.Context, reqOrigin events.APIGatewayRequest)
pkg/scf/scfhandler.go:20
↓ 1 callers
Function
LoadCertificateFromFile
LoadCertificateFromFile loads a Certificate from a PEM-encoded file
pkg/mitm/keyman.go:192
↓ 1 callers
Function
LoadPKFromFile
LoadPKFromFile loads a PEM-encoded PrivateKey from a file
pkg/mitm/keyman.go:56
↓ 1 callers
Function
NewCache
NewCache creates a new Cache
pkg/mitm/Cache.go:21
↓ 1 callers
Function
Wrap
(handler http.Handler, cryptoConf *CryptoConfig)
pkg/mitm/mitm.go:32
↓ 1 callers
Method
WriteToFile
WriteToFile writes the PEM-encoded Certificate to a file.
pkg/mitm/keyman.go:234
↓ 1 callers
Function
forworld
(reqevent *DefineEvent)
pkg/scf/scfhandler.go:42
↓ 1 callers
Function
hostIncludingPort
(req *http.Request)
pkg/mitm/mitm.go:110
↓ 1 callers
Method
initCrypto
()
pkg/mitm/crypto.go:35
↓ 1 callers
Method
intercept
(resp http.ResponseWriter, req *http.Request)
pkg/mitm/mitm.go:57
↓ 1 callers
Function
makeConfig
(template *tls.Config)
pkg/mitm/mitm.go:101
↓ 1 callers
Method
mitmCertForName
(name string)
pkg/mitm/crypto.go:67
↓ 1 callers
Function
runHTTPServer
()
cmd/client.go:46
Method
Accept
()
pkg/mitm/lisener.go:13
Method
Addr
()
pkg/mitm/lisener.go:27
Method
Format
(entry *logrus.Entry)
cmd/main.go:34
Function
LoadCertificateFromX509
LoadCertificateFromX509 loads a Certificate from an x509.Certificate
pkg/mitm/keyman.go:214
Method
PEMEncoded
PEMEncoded encodes the Certificate in PEM
pkg/mitm/keyman.go:229
Method
PoolContainingCert
PoolContainingCert creates a pool containing this cert.
pkg/mitm/keyman.go:277
Function
PoolContainingCerts
PoolContainingCerts constructs a CertPool containing all of the given certs (PEM encoded).
pkg/mitm/keyman.go:285
Method
ServeHTTP
ServeHTTP implements ServeHTTP from http.Handler
pkg/mitm/mitm.go:46
Method
WriteToDERFile
WriteToDERFile writes the DER-encoded Certificate to a file.
pkg/mitm/keyman.go:262
Method
WriteToTempFile
()
pkg/mitm/keyman.go:247
Method
X509
X509 returns the x509 certificate underlying this Certificate
pkg/mitm/keyman.go:224
Function
init
()
cmd/client.go:26
Function
init
()
cmd/main.go:21
Function
main
()
cmd/client.go:37
Function
main
()
cmd/main.go:17
Function
server
(ctx context.Context, req events.APIGatewayRequest)
cmd/main.go:25