- ๐ถ Art is my passion
- ๐ฌ Ask me about
secret management
,google cloud
tam7t / hpkp Goto Github PK
View Code? Open in Web Editor NEWgolang hpkp client library
License: MIT License
golang hpkp client library
License: MIT License
secret management
, google cloud
I haven't debugged it, but this is what's happening with Go 1.17 on OSX:
โฏ hpkp-headers https://github.com
null
null
Trying to use your dialer against http2.Transport seems to fail
Looks like http2.Transport.DialTLS expects
type Transport struct {
...
DialTLS func(network, addr string, cfg *tls.Config) (net.Conn, error)
See: https://github.com/golang/net/blob/master/http2/transport.go
Where your DialTLS doesn't accept a tls.Config
https://github.com/tam7t/hpkp/blob/master/dialer.go
My Error:
./https.go:63: cannot use hpkpDialConf.NewDialer() (type func(string, string) (net.Conn, error)) as type func(string, string, *tls.Config) (net.Conn, error) in assignment
Code is here:
https://github.com/GinoM/dingo/tree/hpkp-pinning
Your code works fine against http.Transport though.
I feel like there is probably a better solution but maybe you can add something like
func (c *DialerConfig) NewDialer2() func(network, addr string, cfg *tls.Config) (net.Conn, error) {
c.TLSConfig = cfg
reporter := c.Reporter
if reporter == nil {
reporter = emptyReporter
}
return newPinDialer(c.Storage, reporter, c.PinOnly, c.TLSConfig)
}```
hpkp-headers https://github.com
and any url that I try returns a "null \n null"
This seems to be broken. I've tried the github example and changed all of the Pins - should be invalid / throw error etc.
However it does not complain at all.
an example round tripper that parses & adds headers to storage to learn pins
Hello there, this library is super cool for me, I don't know why doesn't have more starts :(
A little question: is possible to do pinning with a grpc client ?
There's a secure client for grpc here, but I got lost trying to make it fit with this lib, it looks like it's possible 'cause both handle the idea of tls.Configs in some points.
Other question, are you using this library in production ? I have used it for my toy projects, but now I have intentions to use it in a real project at work.
Thanks in advance!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.