WebAuthn

测试环境搭建:

1.服务器主机

        ·安装 ubuntu20.04 server系统

        ·安装 nginx

        ·安装 WebAuthn后端服务

2.客户机

        ·安装 window10系统

        ·安装 Edge浏览器

3.OpenSK加密U盘

详细步骤:

1.在服务器上安装ubuntu20.04 server系统(详细步骤参考ubuntu官网)

2.安装nginx,详细步骤参照以下链接

 ubuntu20.04 安装及配置nginx https

注意:nginx必须配置成https,否则WebAuthn无法使用

·配置nginx代理

        nano /etc/nginx/sites-available/default

 location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                proxy_pass http://127.0.0.1:8080;
#               try_files $uri $uri/ =404;
        }

·配置完成重新加载nginx配置

        sudo service nginx reload

3.安装WebAuthn后端服务,具体步骤参照以下链接GitHub - hbolimovsky/webauthn-example: Basic WebAuthn client and server in go

·修改webauthn-example工程代码

webAuthn, err = webauthn.New(&webauthn.Config{
		RPDisplayName: "Foobar Corp.",     // Display Name for your site
		RPID:          "abc",        // Generally the domain name for your site
		RPOrigin:      "http://localhost", // The origin URL for WebAuthn requests
		// RPIcon: "https://duo.com/logo.png", // Optional icon URL for your site
	})

注意:修改RPID为“abc”,“abc”为WebAuthn后端服务的域名,在WebAuthn中RPID必须为域名,不能为IP地址。

·编译WebAuthn后端服务,编译需要go环境,需先安装go

        go build

·运行WebAuthn后端服务

        ./webauthn-example        

fox@fox:~/wb/webauthn-example$ go build
fox@fox:~/wb/webauthn-example$ ./webauthn-example 
2021/12/23 02:44:45 starting server at :8080

4.OpenSK加密U盘制作

OpenSK参照如下教程:​​​​​​GitHub - google/OpenSK: OpenSK is an open-source implementation for security keys written in Rust that supports both FIDO U2F and FIDO2 standards.

硬件选择和软件写入,见如下教程:

OpenSK/nrf52840_dongle.md at stable · google/OpenSK · GitHub

5.配置window10电脑本地DNS服务器

修改文件C:\Windows\System32\drivers\etc\hosts

# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

192.168.0.62 abc

# localhost name resolution is handled within DNS itself.
#	127.0.0.1       localhost
#	::1             localhost

注意:WebAuthn服务器ip为192.168.0.62

6.最后测试

·将OpenSK加密U盘插入Window10电脑,然后打开Edge浏览器,输入https://abc,然后显示测试网页。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element <input class="codeno" name="Currency1" id="Currency1" style="background: url(../common/images/select--bg_03.png) no-repeat center right; " onclick="return showCodeList('currency',[this,CurrencyName1],[0,1]);" ondblclick="return showCodeList('currency',[this,CurrencyName1],[0,1]);" onkeyup="return showCodeListKey('currency',[this,CurrencyName1],[0,1]);" autocomplete="off"> is not clickable at point (157, 600). Other element would receive the click: <option value="2">...</option> (Session info: chrome=114.0.5735.110) Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'NB-CD-237', ip: '10.10.14.2', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_351' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 114.0.5735.110, chrome: {chromedriverVersion: 114.0.5735.90 (386bc09e8f4f..., userDataDir: C:\Users\HZ2211~1\AppData\L...}, goog:chromeOptions: {debuggerAddress: localhost:50094}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true} Session ID: 573972bafc2464b48b20cd585953448e
06-13

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值