go-adscert

所属分类:CA认证
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2021-06-04 23:41:10
上 传 者sh-1993
说明:  建议的ads.cert协议的Go语言实现,用于在编程广告解决方案中集成。,
(A Go language implementation of the proposed ads.cert protocols for integration in programmatic ads solutions.,)

文件列表:
LICENSE (11360, 2021-06-04)
examples/ (0, 2021-06-04)
examples/democlient/ (0, 2021-06-04)
examples/democlient/clientsample/ (0, 2021-06-04)
examples/democlient/clientsample/client_sample.go (1650, 2021-06-04)
examples/democlient/main.go (1591, 2021-06-04)
examples/demoserver/ (0, 2021-06-04)
examples/demoserver/main.go (1051, 2021-06-04)
examples/demoserver/serversample/ (0, 2021-06-04)
examples/demoserver/serversample/server_sample.go (1079, 2021-06-04)
go.mod (260, 2021-06-04)
go.sum (1719, 2021-06-04)
pkg/ (0, 2021-06-04)
pkg/adscert/ (0, 2021-06-04)
pkg/adscert/authenticated_connections_example_test.go (2757, 2021-06-04)
pkg/adscert/authenticated_connections_signer_api.go (1855, 2021-06-04)
pkg/adscert/authenticated_connections_signer_impl.go (3361, 2021-06-04)
pkg/adscertcounterparty/ (0, 2021-06-04)
pkg/adscertcounterparty/counterparty_api.go (1135, 2021-06-04)
pkg/adscertcounterparty/counterparty_manager.go (10118, 2021-06-04)
pkg/adscertcounterparty/internal_base_key.go (3149, 2021-06-04)
pkg/adscertcrypto/ (0, 2021-06-04)
pkg/adscertcrypto/authenticated_connections_backend_api.go (594, 2021-06-04)
pkg/adscertcrypto/crypto_benchmark_test.go (771, 2021-06-04)
pkg/adscertcrypto/crypto_testing.go (1789, 2021-06-04)
pkg/adscertcrypto/local_crypto_impl.go (5562, 2021-06-04)
pkg/formats/ (0, 2021-06-04)
pkg/formats/adscert_connection_signature.go (5061, 2021-06-04)
pkg/formats/adscert_connection_signature_test.go (6615, 2021-06-04)
pkg/formats/adscert_keys_record.go (1834, 2021-06-04)
pkg/formats/adscert_keys_record_test.go (6283, 2021-06-04)
pkg/formats/adscert_policy_record.go (1359, 2021-06-04)
pkg/formats/adscert_policy_record_test.go (1454, 2021-06-04)
pkg/formats/errors.go (1011, 2021-06-04)
pkg/formats/formatting_utils.go (1103, 2021-06-04)
tools/ (0, 2021-06-04)
tools/keygen/ (0, 2021-06-04)
tools/keygen/keygen_main.go (1200, 2021-06-04)

# go-adscert A proof-of-concept Go language implementation. This repository was created to inform design goals and get initial feedback regarding the integrator API. It's not for production use. The actual implementation will be hosted under a separate repository that's not yet available. If you want to exercise this code for entertainment value: ``` git clone https://github.com/cmlight/go-adscert.git cd go-adscert/ go run examples/demoserver/main.go --host_callsign=exchange-holding-company.ga --logtostderr ``` In a separate terminal, run the HTTP client: ``` go run examples/democlient/main.go --frequency 5s --logtostderr --body '{"sample": "request"}' --origin_callsign=ssai-serving.tk --url='http://ads.ad-exchange.tk:8090/request?param1=example¶m2=another' --send_requests ``` This will perform real DNS lookups to resolve the keys published for these domains. the "ads.ad-exchange.tk" hostname will resolve to 127.0.0.1 so that you can run this locally without needing any special configuration. ``` $ host ads.ad-exchange.tk ads.ad-exchange.tk has address 127.0.0.1 ``` The first request or two will not validate since both client and server need to discover each others' public keys. After that, they should start validating. You should see some DNS events also being logged by the client and server. ``` You invoked http://ads.ad-exchange.tk:8090/request?param1=example¶m2=another with headers map[Accept-Encoding:[gzip] Content-Length:[21] User-Agent:[Go-http-client/1.1] X-Ads-Cert-Auth:[from=ssai-serving.tk&from_key=w8f316&invoking=ad-exchange.tk&nonce=ZwIwT47FUEs_&status=0×tamp=210504T191544&to =exchange-holding-company.ga&to_key=bBvfZU; sigb=ZFv69AKdCGKS&sigu=VGQWhpfXYQrj]] and verification true true ``` You can inspect the static DNS records for the simulated parties: ``` $ host -t TXT _adscert.ad-exchange.tk _adscert.ad-exchange.tk descriptive text "v=adpf a=exchange-holding-company.ga" $ host -t TXT _delivery._adscert.exchange-holding-company.ga _delivery._adscert.exchange-holding-company.ga descriptive text "v=adcrtd k=x25519 h=sha256 p=bBvfZUTPDGIFiOq-WivBoOEYWM5mA1kaEfpDaoYtfHg" $ host -t TXT _delivery._adscert.ssai-serving.tk _delivery._adscert.ssai-serving.tk descriptive text "v=adcrtd k=x25519 h=sha256 p=w8f3160kEklY-nKuxogvn5PsZQLfkWWE0gUq_4JfFm8" ```

近期下载者

相关文件


收藏者