Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use mm-webreplay? #2

Open
dreamyouonly opened this issue Aug 26, 2022 · 0 comments
Open

How to use mm-webreplay? #2

dreamyouonly opened this issue Aug 26, 2022 · 0 comments

Comments

@dreamyouonly
Copy link

dreamyouonly commented Aug 26, 2022

  • What I finished
    I have finished these steps: "Build","Dependencies".
    And mm-webrecord is able to work, although it will meet SIGILL Error at times.
    Now I am trying to follow the steps of mm-webreplay.

  • What the problem is
    I compiled the source code of nginx-quic and got a runnable program. And get the CA root certificate through the steps of readme. But I don't know how to let mahimahi know where my nginx and certificate are (if that is necessary).
    After input "the secret", it shows:

enter priavet_key password :
ALT NAME r1 ---sn-ni5een7e.gvt1.com
Generating a RSA private key
.............................++++++++++
writing new private key to '/tmp/private.0N9qEW'
Using configuration from /tmp/cacfg.pMzdmI
unable to load CA private key
139865154040256:error:0909006C:PEM routines:get_name:no start line:../crypto/pem/pem_lib.c:745:Expecting: ANY PRIVATE KEY
Died on std::runtime_error: /usr/bin/openssl ca -batch -config /tmp/cacfg.pMzdmI -policy signing_policy -extensions signing_req -passin pass:hitcpswjt -out /tmp/certificate.sBpyNy -infiles /tmp/csr.VIn7c6': process exited with failure status 1

Can you help me with this problem?thanks a lot.

the nginx-quic project is https://hg.nginx.org/nginx-quic


您好,我在打算使用mm-webreplay的时候遇到了一些问题。
当前阶段:
我已经完成了build和dependency的安装,并且能够执行mm-webrecod访问到bilibili。但是这里会经常遇到chrome的报错SIGILL,导致页面无法加载。
我暂时忽略了SIGILL的问题探究,想要尝试mm-webreplay

问题描述:
我在~/mynginx中通过源码编译得到了nginx-quic的可执行程序,并且启用了http-ssl-module等必需模块。另外也按照readme的步骤生成了ca.key.pem和ca.cert.pem,并放在了~/mynginx/conf/ssl目录下。在启动nginx时,加密的ca.key.pem无法访问,报错bad_password_read,所以我通过openssl rsa -in xxx -out yyy的命令得到了解密后的key文件并能够正常启动nginx。
现在,我转而在mahimahi目录下启动mm-webreplay test,并输入我的secret,报错如下:

mahimahi replay working_directory : /home/wjt/mahimahi
enter priavet_key password :
ALT NAME r1---sn-ni5een7e.gvt1.com
Generating a RSA private key
.............................+++++
writing new private key to '/tmp/private.0N9qEW'
Using configuration from /tmp/cacfg.pMzdmI
unable to load CA private key
139865154040256:error:0909006C:PEM routines:get_name:no start line:../crypto/pem/pem_lib.c:745:Expecting: ANY PRIVATE KEY
Died on std::runtime_error: `/usr/bin/openssl ca -batch -config /tmp/cacfg.pMzdmI -policy signing_policy -extensions signing_req -passin pass:hitcpswjt -out /tmp/certificate.sBpyNy -infiles /tmp/csr.VIn7c6': process exited with failure status 1

我怀疑我的证书和nginx并不能被mahimahi识别,因为我并没有进行做配置。但是这一步如何去做?或者我之前步骤中有什么不当之处?
请您指正,谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant