MCPcopy Create free account

hub / github.com/Sakurasan/scf-proxy / functions

Functions46 in github.com/Sakurasan/scf-proxy

↓ 5 callersMethodClose
()
pkg/mitm/lisener.go:23
↓ 3 callersFunctionLoadCertificateFromPEMBytes
LoadCertificateFromPEMBytes loads a Certificate from a byte array in PEM format
pkg/mitm/keyman.go:205
↓ 3 callersMethodPEMEncoded
PEMEncoded encodes the PrivateKey in PEM
pkg/mitm/keyman.go:76
↓ 3 callersFunctionhandlerErr
handleErr 处理错误
pkg/scf/scfhandler.go:82
↓ 2 callersMethodGet
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 callersFunctionHandlerHttp
(w http.ResponseWriter, r *http.Request)
pkg/scf/handler.go:17
↓ 2 callersMethodSet
Set sets a value in the cache with an expiration of now + ttl.
pkg/mitm/Cache.go:45
↓ 2 callersMethodTLSCertificateFor
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 callersMethodWriteToFile
WriteToFile writes the PEM-encoded PrivateKey to the given file
pkg/mitm/keyman.go:81
↓ 2 callersFunctionbytesToCert
(derBytes []byte)
pkg/mitm/keyman.go:301
↓ 2 callersMethodpemBlock
()
pkg/mitm/keyman.go:95
↓ 2 callersMethodpemBlock
()
pkg/mitm/keyman.go:309
↓ 2 callersFunctionrespBadGateway
(resp http.ResponseWriter, msg string)
pkg/mitm/mitm.go:118
↓ 1 callersMethodCertificate
******************************************************************************* * Certificate Functions ********************************************
pkg/mitm/keyman.go:108
↓ 1 callersMethodCertificateForKey
* 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 callersMethodExpiresBefore
(time time.Time)
pkg/mitm/keyman.go:297
↓ 1 callersFunctionGeneratePK
******************************************************************************* * Private Key Functions ********************************************
pkg/mitm/keyman.go:46
↓ 1 callersFunctionHandler
(ctx context.Context, reqOrigin events.APIGatewayRequest)
pkg/scf/scfhandler.go:20
↓ 1 callersFunctionLoadCertificateFromFile
LoadCertificateFromFile loads a Certificate from a PEM-encoded file
pkg/mitm/keyman.go:192
↓ 1 callersFunctionLoadPKFromFile
LoadPKFromFile loads a PEM-encoded PrivateKey from a file
pkg/mitm/keyman.go:56
↓ 1 callersFunctionNewCache
NewCache creates a new Cache
pkg/mitm/Cache.go:21
↓ 1 callersFunctionWrap
(handler http.Handler, cryptoConf *CryptoConfig)
pkg/mitm/mitm.go:32
↓ 1 callersMethodWriteToFile
WriteToFile writes the PEM-encoded Certificate to a file.
pkg/mitm/keyman.go:234
↓ 1 callersFunctionforworld
(reqevent *DefineEvent)
pkg/scf/scfhandler.go:42
↓ 1 callersFunctionhostIncludingPort
(req *http.Request)
pkg/mitm/mitm.go:110
↓ 1 callersMethodinitCrypto
()
pkg/mitm/crypto.go:35
↓ 1 callersMethodintercept
(resp http.ResponseWriter, req *http.Request)
pkg/mitm/mitm.go:57
↓ 1 callersFunctionmakeConfig
(template *tls.Config)
pkg/mitm/mitm.go:101
↓ 1 callersMethodmitmCertForName
(name string)
pkg/mitm/crypto.go:67
↓ 1 callersFunctionrunHTTPServer
()
cmd/client.go:46
MethodAccept
()
pkg/mitm/lisener.go:13
MethodAddr
()
pkg/mitm/lisener.go:27
MethodFormat
(entry *logrus.Entry)
cmd/main.go:34
FunctionLoadCertificateFromX509
LoadCertificateFromX509 loads a Certificate from an x509.Certificate
pkg/mitm/keyman.go:214
MethodPEMEncoded
PEMEncoded encodes the Certificate in PEM
pkg/mitm/keyman.go:229
MethodPoolContainingCert
PoolContainingCert creates a pool containing this cert.
pkg/mitm/keyman.go:277
FunctionPoolContainingCerts
PoolContainingCerts constructs a CertPool containing all of the given certs (PEM encoded).
pkg/mitm/keyman.go:285
MethodServeHTTP
ServeHTTP implements ServeHTTP from http.Handler
pkg/mitm/mitm.go:46
MethodWriteToDERFile
WriteToDERFile writes the DER-encoded Certificate to a file.
pkg/mitm/keyman.go:262
MethodWriteToTempFile
()
pkg/mitm/keyman.go:247
MethodX509
X509 returns the x509 certificate underlying this Certificate
pkg/mitm/keyman.go:224
Functioninit
()
cmd/client.go:26
Functioninit
()
cmd/main.go:21
Functionmain
()
cmd/client.go:37
Functionmain
()
cmd/main.go:17
Functionserver
(ctx context.Context, req events.APIGatewayRequest)
cmd/main.go:25