AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[https](ubuntu)

Martin Hope
Kdz
Asked: 2020-10-04 05:13:27 +0800 CST

通过 SSL 设置 VLC 流服务器时,握手完成后我得到一个空响应

  • 1

我有一个设置,我在 ubuntu 服务器上使用 cvlc 将 rtsp 流多路复用到 mjpeg 流中。这工作得很好,但是一旦我尝试切换 vlc 以使用我的 Let'sEncrypt 证书(以防止浏览器抱怨混合内容),客户端不再接收流(ERR_EMPTY_RESPONSE),但 TLS 握手似乎工作(用wireshark看到)。

这是我的 cvlc 命令行:

cvlc -vvv --http-cert="/var/www/mydomain.com/html/scripts/vlc_certs/cert.pem" --http-key="/var/www/mydomain.com/html/scripts/vlc_certs/privkey.pem" "rtsp://myrtspstream.com" --no-audio --sout '#transcode{vcodec=MJPG,venc=ffmpeg{strict=1}}:standard{access=https{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:8443}' 

如果我将访问参数更改为http一切都会立即正常工作。

VLC版本是:VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332)

VLC 输出中唯一可疑的是以下几行:

[00007f77e40038d0] gnutls tls server debug: TLS handshake: An unexpected TLS packet was received.
[00007f77e40038d0] gnutls tls server error: TLS handshake error: An unexpected TLS packet was received.

但无论如何它继续缓冲和转码它似乎:

Sending request: TEARDOWN rtsp://******:554/ RTSP/1.0
CSeq: 6
User-Agent: LibVLC/3.0.4 (LIVE555 Streaming Media v2018.02.18)
Session: mMPpZwWZuox


[00007fbcb44fd050] main decoder debug: killing decoder fourcc `h264'
[00007fbcb44fd050] main decoder debug: removing module "h264"
[00007fbcbc000c40] main input debug: Program doesn't contain anymore ES
Created new TCP socket 10 for connection
Connecting to **********, port 554 on socket 10...
...remote connection opened
Sending request: OPTIONS rtsp://*********:554/12 RTSP/1.0
CSeq: 2
User-Agent: LibVLC/3.0.4 (LIVE555 Streaming Media v2018.02.18)


Received 134 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 2
Server: Hipcam RealServer/V1.0
Public: OPTIONS,DESCRIBE,SETUP,TEARDOWN,PLAY,SET_PARAMETER,GET_PARAMETER


Sending request: DESCRIBE rtsp://********:554/12 RTSP/1.0
CSeq: 3
User-Agent: LibVLC/3.0.4 (LIVE555 Streaming Media v2018.02.18)
Accept: application/sdp


Received 493 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 3
Server: Hipcam RealServer/V1.0
Content-Type: application/sdp
Cache-Control: must-revalidate
Content-length: 304
Content-Base: rtsp://*********:554/12/

v=0
o=StreamingServer 3331435948 1116907222000 IN IP4 *********
s=11
c=IN IP4 0.0.0.0
t=0 0
a=control:*
m=video 0 RTP/AVP 96
a=control:trackID=0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=4D002A;sprop-parameter-sets=Z00AHpWoKAtk,aO48gA==
a=framesize:96 640-352

[00007fbcb402a150] live555 demux debug: RTP subsession 'video/H264'
Sending request: SETUP rtsp://***********:554/12/trackID=0 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/3.0.4 (LIVE555 Streaming Media v2018.02.18)
Transport: RTP/AVP/TCP;unicast;interleaved=0-1


Received 130 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 4
Server: Hipcam RealServer/V1.0
Session: NnoUvumuumG
Transport: RTP/AVP/TCP;unicast;interleaved=0-1


[00007fbcb44fd050] main decoder debug: looking for packetizer module matching "any": 24 candidates
[00007fbcb44fd050] h264 decoder debug: found NAL_SPS (sps_id=0)
[00007fbcb44fd050] h264 decoder debug: found NAL_PPS (pps_id=0 sps_id=0)
[00007fbcb44fd050] main decoder debug: using packetizer module "h264"
[00007fbcb402a150] live555 demux debug: setup start: 0.000000 stop:0.000000
Sending request: PLAY rtsp://*********:554/12/ RTSP/1.0
CSeq: 5
User-Agent: LibVLC/3.0.4 (LIVE555 Streaming Media v2018.02.18)
Session: NnoUvumuumG
Range: npt=0.000-


Received a complete PLAY response:
RTSP/1.0 200 OK
CSeq: 5
Server: Hipcam RealServer/V1.0
Session: NnoUvumuumG
RTP-Info:url=**********/trackID=0;seq=1;rtptime=10000,url=**********/trackID=1;seq=1;rtptime=10000


server vlc streaming https
  • 1 个回答
  • 1598 Views
Martin Hope
Siva Sankaran
Asked: 2020-07-14 03:11:00 +0800 CST

安装操作系统(一般,尤其是 Ubuntu/任何 Linux)后,我们需要单独安装根证书吗?

  • 0

在此处输入图像描述

我已经在 Oracle VM VirtualBox 中安装了 ubuntu-20.04-desktop-amd64.iso。详情如上。我在安装 Ubuntu 时尝试了最小安装和正常安装类型。在这两种情况下都存在以下问题。

当我早些时候尝试在 Firefox 中打开 Google.com 时,sec_error_unknown_issuer单击高级按钮时出现错误代码。没有按钮接受风险并继续

几分钟后,我在主机操作系统(windows 10)中工作,我再次尝试,现在我得到了错误代码,就像MOZZILA_PKIX_ERROR_MITM_DETECTED接受风险并继续按钮一样。我不明白是什么改变了错误代码并使接受并继续选项可用。

我之前也尝试通过这个命令从终端安装邮递员

sudo snap install postman

总是失败

error: cannot install "postman": Post
       https://api.snapcraft.io/v2/snaps/refresh: x509: certificate signed by unknown authority

在/usr/share/ca-certificates目录中只有一个目录名mozilla

在研究了证书颁发机构之后,我想我可能需要安装一个根证书。但我现在得到了我的问题,“Ubuntu 安装不会负责安装根证书吗?”

安装操作系统(windows、Mac 或任何操作系统)后是否需要安装根证书?

virtualbox ssl https
  • 1 个回答
  • 747 Views
Martin Hope
MichaelB
Asked: 2020-05-30 11:02:32 +0800 CST

回显所有匹配正则表达式的 URL

  • -2

对于我正在处理的项目,我需要获取域的某个文件夹中所有 URL 的列表,或者更好的是所有与正则表达式匹配的 URL。

我想使用 bash 来执行此操作,以避免安装任何我最终不会使用的程序,但如果有使用我可能已经拥有的程序的解决方案,例如 FireFox,请继续告诉我。

谢谢你的时间。

bash webserver https
  • 1 个回答
  • 395 Views
Martin Hope
Geoffroy
Asked: 2020-05-18 17:01:51 +0800 CST

无法重新启动 Apache2 - 错误

  • 1

在尝试更新我的 SSL 证书后,我目前的网站出现问题。

我已经完成了本教程中提到的所有步骤:https ://www.digitalocean.com/community/tutorials/how-to-install-an-ssl-certificate-from-a-commercial-certificate-authority

在最后一部分,当我必须输入sudo service apache2 restart行时,我收到了以下错误消息:

Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.


systemctl 状态 apache2.service

● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: failed (Result: exit-code) since Mon 2020-05-18 00:18:34 UTC; 6s ago
  Process: 4867 ExecStop=/usr/sbin/apachectl stop (code=exited, status=0/SUCCESS)
  Process: 7254 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
 Main PID: 1045 (code=exited, status=0/SUCCESS)

May 18 00:18:34 systemd[1]: Starting The Apache HTTP Server...
May 18 00:18:34 apachectl[7254]: Action 'start' failed.
May 18 00:18:34 apachectl[7254]: The Apache error log may have more information.
May 18 00:18:34 systemd[1]: apache2.service: Control process exited, code=exited status=1
May 18 00:18:34 systemd[1]: apache2.service: Failed with result 'exit-code'.
May 18 00:18:34 systemd[1]: Failed to start The Apache HTTP Server.
apache2ctl configtest
Syntax OK
apachectl configtest
Syntax OK

我尝试了configtest命令来查看是否有任何合成器错误,但一切似乎都很好。

journalctl -xe

May 18 15:33:52 sshd[31542]: Failed password for i
May 18 15:33:53 sudo[31549]:     root : TTY=pts/0
May 18 15:33:53 sudo[31549]: pam_unix(sudo:session
May 18 15:33:53 systemd[1]: Starting The Apache HT
-- Subject: Unit apache2.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has begun starting up.
May 18 15:33:53 apachectl[31555]: Action 'start' f
May 18 15:33:53 apachectl[31555]: The Apache error
May 18 15:33:53 systemd[1]: apache2.service: Contr
May 18 15:33:53 systemd[1]: apache2.service: Faile
May 18 15:33:53 systemd[1]: Failed to start The Ap
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has failed.
--
-- The result is RESULT.
May 18 15:33:53 sudo[31549]: pam_unix(sudo:session
May 18 15:33:55 kernel: [UFW BLOCK] IN=eth0 OUT= M
lines 1128-1150/1150 (END)
May 18 15:33:52 sshd[31542]: Failed password for invalid user bdt from 206.18
May 18 15:33:53 sudo[31549]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; C
May 18 15:33:53 sudo[31549]: pam_unix(sudo:session): session opened for user
May 18 15:33:53 systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit apache2.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has begun starting up.
May 18 15:33:53 apachectl[31555]: Action 'start' failed.
May 18 15:33:53 apachectl[31555]: The Apache error log may have more informat
May 18 15:33:53 systemd[1]: apache2.service: Control process exited, code=exi
May 18 15:33:53 systemd[1]: apache2.service: Failed with result 'exit-code'.
May 18 15:33:53 systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has failed.
--
-- The result is RESULT.
May 18 15:33:53 sudo[31549]: pam_unix(sudo:session): session closed for user
May 18 15:33:55 kernel: [UFW BLOCK] IN=eth0 OUT= MAC=fa:52:65:0e:6a:71:fe:00:
~
~
~
~
~
~
~
~
~
~
~
lines 1128-1150/1150 (END)
May 18 15:33:52  sshd[31542]: Failed password for invalid user bdt from 206.189.212.33 port 38420 ssh2
May 18 15:33:53  sudo[31549]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/service ap
May 18 15:33:53  sudo[31549]: pam_unix(sudo:session): session opened for user root by root(uid=0)
May 18 15:33:53  systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit apache2.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has begun starting up.
May 18 15:33:53  apachectl[31555]: Action 'start' failed.
May 18 15:33:53  apachectl[31555]: The Apache error log may have more information.
May 18 15:33:53  systemd[1]: apache2.service: Control process exited, code=exited status=1
May 18 15:33:53  systemd[1]: apache2.service: Failed with result 'exit-code'.
May 18 15:33:53  systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has failed.
--
-- The result is RESULT.
May 18 15:33:53  sudo[31549]: pam_unix(sudo:session): session closed for user root
May 18 15:33:55  kernel: [UFW BLOCK] IN=eth0 OUT= MAC=fa:52:65:0e:6a:71:fe:00:00:00:01:01:08:00 SRC=185.1
~
~
~
~
~
~
~
~
~
~
~
~
lines 1128-1150/1150 (END)
May 18 15:33:52  sshd[31542]: Failed password for invalid user bdt from 206.189.212.33 port 38420 ssh2
May 18 15:33:53  sudo[31549]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/service apache2 restart
May 18 15:33:53  sudo[31549]: pam_unix(sudo:session): session opened for user root by root(uid=0)
May 18 15:33:53  systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit apache2.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has begun starting up.
May 18 15:33:53  apachectl[31555]: Action 'start' failed.
May 18 15:33:53  apachectl[31555]: The Apache error log may have more information.
May 18 15:33:53  systemd[1]: apache2.service: Control process exited, code=exited status=1
May 18 15:33:53  systemd[1]: apache2.service: Failed with result 'exit-code'.
May 18 15:33:53  systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has failed.
--
-- The result is RESULT.
May 18 15:33:53  sudo[31549]: pam_unix(sudo:session): session closed for user root
May 18 15:33:55  kernel: [UFW BLOCK] IN=eth0 OUT= MAC=fa:52:65:0e:6a:71:fe:00:00:00:01:01:08:00 SRC=185.151.242.187 DST=167.99.179.159 LEN=40 T
~
~
~
~
~
~
~
~
~
~
~
~
lines 1128-1150/1150 (END)
May 18 15:33:52  sshd[31542]: Failed password for invalid user bdt from 206.189.212.33 port 38420 ssh2
May 18 15:33:53  sudo[31549]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/service apache2 restart
May 18 15:33:53  sudo[31549]: pam_unix(sudo:session): session opened for user root by root(uid=0)
May 18 15:33:53  systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit apache2.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has begun starting up.
May 18 15:33:53  apachectl[31555]: Action 'start' failed.
May 18 15:33:53  apachectl[31555]: The Apache error log may have more information.
May 18 15:33:53  systemd[1]: apache2.service: Control process exited, code=exited status=1
May 18 15:33:53  systemd[1]: apache2.service: Failed with result 'exit-code'.
May 18 15:33:53  systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has failed.
--
-- The result is RESULT.
May 18 15:33:53  sudo[31549]: pam_unix(sudo:session): session closed for user root
May 18 15:33:55  kernel: [UFW BLOCK] IN=eth0 OUT= MAC=fa:52:65:0e:6a:71:fe:00:00:00:01:01:08:00 SRC=185.151.242.187 DST=167.99.179.159 LEN=40 TOS=0x00 PREC=0x00 TTL=240 ID=15380 PROTO=TCP
~
~
~
~
~
~
~
~
~
~
~
~
lines 1128-1150/1150 (END)
May 18 15:33:52  sshd[31542]: Failed password for invalid user bdt from 206.189.212.33 port 38420 ssh2
May 18 15:33:53  sudo[31549]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/service apache2 restart
May 18 15:33:53  sudo[31549]: pam_unix(sudo:session): session opened for user root by root(uid=0)
May 18 15:33:53  systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit apache2.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has begun starting up.
May 18 15:33:53  apachectl[31555]: Action 'start' failed.
May 18 15:33:53  apachectl[31555]: The Apache error log may have more information.
May 18 15:33:53  systemd[1]: apache2.service: Control process exited, code=exited status=1
May 18 15:33:53  systemd[1]: apache2.service: Failed with result 'exit-code'.
May 18 15:33:53  systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has failed.
--
-- The result is RESULT.
May 18 15:33:53  sudo[31549]: pam_unix(sudo:session): session closed for user root
May 18 15:33:55  kernel: [UFW BLOCK] IN=eth0 OUT= MAC=fa:52:65:0e:6a:71:fe:00:00:00:01:01:08:00 SRC=185.151.242.187 DST=167.99.179.159 LEN=40 TOS=0x00 PREC=0x00 TTL=240 ID=15380 PROTO=TCP SPT=21789 DPT=3377 WINDOW=1024 R
~
~
~
~
~
~
~
~
~
~
~
~
lines 1128-1150/1150 (END)
May 18 15:33:52  sshd[31542]: Failed password for invalid user bdt from 206.189.212.33 port 38420 ssh2
May 18 15:33:53  sudo[31549]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/service apache2 restart
May 18 15:33:53  sudo[31549]: pam_unix(sudo:session): session opened for user root by root(uid=0)
May 18 15:33:53  systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit apache2.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has begun starting up.
May 18 15:33:53  apachectl[31555]: Action 'start' failed.
May 18 15:33:53  apachectl[31555]: The Apache error log may have more information.
May 18 15:33:53  systemd[1]: apache2.service: Control process exited, code=exited status=1
May 18 15:33:53  systemd[1]: apache2.service: Failed with result 'exit-code'.
May 18 15:33:53  systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has failed.
--
-- The result is RESULT.
May 18 15:33:53  sudo[31549]: pam_unix(sudo:session): session closed for user root
May 18 15:33:55  kernel: [UFW BLOCK] IN=eth0 OUT= MAC=fa:52:65:0e:6a:71:fe:00:00:00:01:01:08:00 SRC=185.151.242.187 DST=167.99.179.159 LEN=40 TOS=0x00 PREC=0x00 TTL=240 ID=15380 PROTO=TCP SPT=21789 DPT=3377 WINDOW=1024 RES=0x00 SYN URGP=0


当我尝试通过 sFTP 访问文件夹/usr/sbin/apachectl时,我们可以看到以下错误消息: Directory /usr/sbin/apache2ctl: no such file or directory

在文件/var/log/apache2/error.log中,我有 :

[Mon May 18 15:33:53.451709 2020] [ssl:error] [pid 31566] AH02579: Init: Private key not found
[Mon May 18 15:33:53.451789 2020] [ssl:error] [pid 31566] SSL Library Error: error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag
[Mon May 18 15:33:53.451800 2020] [ssl:error] [pid 31566] SSL Library Error: error:0D08303A:asn1 encoding routines:asn1_template_noexp_d2i:nested asn1 error
[Mon May 18 15:33:53.451807 2020] [ssl:error] [pid 31566] SSL Library Error: error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag
[Mon May 18 15:33:53.451815 2020] [ssl:error] [pid 31566] SSL Library Error: error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error (Type=RSAPrivateKey)
[Mon May 18 15:33:53.451823 2020] [ssl:error] [pid 31566] SSL Library Error: error:04093004:rsa routines:old_rsa_priv_decode:RSA lib
[Mon May 18 15:33:53.451830 2020] [ssl:error] [pid 31566] SSL Library Error: error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag
[Mon May 18 15:33:53.451837 2020] [ssl:error] [pid 31566] SSL Library Error: error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error (Type=PKCS8_PRIV_KEY_INFO)
[Mon May 18 15:33:53.451842 2020] [ssl:emerg] [pid 31566] AH02311: Fatal error initialising mod_ssl, exiting. See /var/log/apache2/error.log for more information
[Mon May 18 15:33:53.451846 2020] [ssl:emerg] [pid 31566] AH02564: Failed to configure encrypted (?) private key mydomain.com:443:0, check /root/certificate/mydomain.com.key
AH00016: Configuration Failed

任何帮助将非常感激。如果您需要检查其他内容,请告诉我您需要什么以及我如何获取这些信息。谢谢!

server ssl apache2 restart https
  • 2 个回答
  • 814 Views
Martin Hope
Zany_Zachary1
Asked: 2020-04-15 06:44:54 +0800 CST

Ping 特定网址?

  • 3

我正在制作一个 bash 脚本来 ping 某个网址。问题是,当我说:
ping https://www.dictionary.com/browse/word 然后 ping 说
ping: https://www.dictionary.com/browse/word: Name or service not known
有人可以帮我解决这个问题吗?什么是我可以用来 ping https 服务器的程序。
我必须在那里有斜线,因为我想 ping 那个特定的页面。
先感谢您。

bash ping https
  • 2 个回答
  • 1721 Views
Martin Hope
Ole
Asked: 2020-02-25 17:44:42 +0800 CST

如何安装 SSL 证书以便为本地 Web 应用程序提供服务?

  • 0

我需要安装本地 SSL 证书,以便浏览器信任它。教程Running Angular CLI over HTTPS with a Trusted Certificate包含针对 OS X 和 Windows 的说明,但不包含 Ubuntu。

例如,这些是 OS X 的说明:

  1. 双击证书 ( server.crt)
  2. 选择您想要的钥匙串(login应该足够了)
  3. 添加证书
  4. 如果尚未打开钥匙串访问,请打开它
  5. 选择您之前选择的钥匙串
  6. 你应该看到证书localhost
  7. 双击证书
  8. 扩大信任
  9. 在“使用此证书时”中选择始终信任选项
  10. 关闭证书窗口

证书现已安装。

Ubuntu 的等价物是什么?

browser ssl https certificates javascript
  • 1 个回答
  • 1178 Views
Martin Hope
GCGM
Asked: 2019-08-30 02:33:44 +0800 CST

来自终端的 HTTP 请求的 XML 输出

  • 0

我正在HTTP使用从终端发送请求curl,并希望查看或保存输出(默认情况下输入xml)。

这是我正在使用的代码:

curl https://catalogue.onda-dias.eu/dias-catalogue/Products?$search="name:S1A_IW_OCN__2SDV_20170904T063918_20170904T063943_018222_01EA1A_8E10.zip"

输出包含很多(在我看来)随机文本(见图 1)

如果我http在浏览器上运行相同的请求(参见图 2),我会在 xml 中获得输出(我需要 xml 来提取一次包含的参数)

卷曲在此处输入图像描述

command-line https xml curl
  • 1 个回答
  • 3760 Views
Martin Hope
LukeDS
Asked: 2019-04-07 15:09:00 +0800 CST

如何使用 Goddady 证书在 NGINX 中启用 ssl?

  • 1

我对此很陌生,还没有在 nginx 中安装 SSL 证书,所以请原谅我的无知。

我有一个来自 godaddy 的证书,但我似乎找不到在我的 linux 服务器(ubuntu 18.04)上使用它的方法。

我将介绍我到目前为止所做的事情。

Godaddy证书

在创建 SSL 证书的过程中,godaddy 首先提供了两个文件,一个带有您的 SSL 证书密钥,另一个带有 CSR(不确定它是什么)。

系统会提示您下载 SSL 证书,这是另外两个文件,一个是某种捆绑包,另一个是其他东西(来自他们的网站)将您的 SSL 证书文件和证书捆绑包文件复制到您的 Nginx 服务器。这两个文件都是.crt

路由器

我已启用任何传入的 443 以将流量重定向到我的服务器。

服务器 Ubuntu 18.04

我遵循了他们不太有用的教程。

https://uk.godaddy.com/help/nginx-install-a-certificate-6722

https://www.godaddy.com/garage/how-to-install-an-ssl-certificate-on-ubuntu-for-nginx/

编辑了 nginx 配置文件

/etc/nginx/sites-available/myweb

server {
    listen 443;
    listen [::]:443;
    ssl on;
    ssl_certificate_key /etc/nginx/ssl/myweb.key;
    ssl_certificate /etc/nginx/ssl/certf.crt;
    ssl_certificate /etc/nginx/ssl/b_certf.crt;

    root /media/world/myweb/origin;

    index index.html index.htm index.nginx-debian.html;

    server_name 192.168.0.9 lmyweb.com www.myweb.com;

    location / {
            try_files $uri $uri/ =404;
    }
}

访问我的网站时,我得到 404 this site can't be reach。

我错过了什么吗?也许在 Nginx 中有一些我不知道的启用?或者我在错误的文件中配置了上述内容?

任何帮助将不胜感激。

ssl nginx https
  • 1 个回答
  • 3606 Views
Martin Hope
FrakyDale
Asked: 2019-03-19 06:47:13 +0800 CST

统计所有传出的 http/s 请求

  • 0

我想知道我在一个月内用我的电脑发出了多少 http/s 请求(Ubuntu 18.10)

ubuntu 有什么命令可以看到吗?

monitoring https
  • 1 个回答
  • 1469 Views
Martin Hope
wouter205
Asked: 2019-03-16 00:25:02 +0800 CST

Docker:无法通过 https 连接

  • 0

我正在尝试启动并运行 Onlyoffice 的 docker 容器。

我按照GitHub 上提供的说明进行操作,但收到连接被拒绝错误。

这是我的码头工人命令:

docker run -i -t -d -p 443:443 --restart=always -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data -v /app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice -v /app/onlyoffice/DocumentServer/db:/var/lib/postgresql onlyoffice/documentserver 

当我在浏览器中打开该页面时,我收到一条 ERR_CONNECTION_REFUSED 消息。

使用lsofI see docker 已在端口 443 上建立连接:

$lsof -i :443
COMMAND    PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
docker-pr 2967 root    4u  IPv4 13839915      0t0  TCP 192.168.218.10:https (LISTEN)

什么可能是错的?在 http(端口 80)上运行时,docker 映像工作正常。

主机操作系统:Xubuntu 16.04.6 LTS Docker 版本:Docker-ce 5.18

https docker tls
  • 1 个回答
  • 1574 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve