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
    • 最新
    • 标签
主页 / user-20346

Ram Rachum's questions

Martin Hope
Ram Rachum
Asked: 2014-09-26 06:45:56 +0800 CST

使用`openssl s_client`时获取`HTTP/1.1 505 HTTP Version Not Supported`

  • 1

我正在尝试使用openssl s_client发送原始 HTTPS 请求。

我输入这个:

$ openssl s_client -connect homebrew.herokuapp.com:443

在它完成 SSL 寒暄之后,我输入以下内容:

POST http://homebrew.herokuapp.com/ HTTP/1.1

但随后它关闭了与此的连接:

HTTP/1.1 505 HTTP Version Not Supported
Connection: close

我只在 Heroku 上托管的应用程序上得到这个。为什么?

ssl
  • 1 个回答
  • 2881 Views
Martin Hope
Ram Rachum
Asked: 2014-05-28 04:15:24 +0800 CST

为什么 `dig` 不显示记录?

  • 8

每次使用时,我都有dig一种模糊的感觉,我不确定它是否给了我正确的数据。

现在我这样使用它:

# dig socialimpactportfolio.com

; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> socialimpactportfolio.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35289
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;socialimpactportfolio.com.     IN      A

;; AUTHORITY SECTION:
socialimpactportfolio.com. 1799 IN      SOA     dns1.name-services.com. info.name-services.com. 2002050701 10800 3600 604800 3600

;; Query time: 121 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Thu May 22 14:01:03 2014
;; MSG SIZE  rcvd: 103

如您所见,没有ANSWER部分,尽管该域上有一个工作网站。

为什么?

我真的很想要一个程序,它以最简单的方式简单地显示所有 DNS 记录。

domain-name-system
  • 4 个回答
  • 18176 Views
Martin Hope
Ram Rachum
Asked: 2014-01-11 02:27:59 +0800 CST

在进行 Python 安全更新时收到通知

  • 4

我维护了一些基于 Python 的 Web 应用程序。当新的 Python 版本发布时,我需要立即得到通知,尤其是修复安全问题的微级别版本,以便我可以更新我的网站以使用新版本。

有没有办法自动通知?我查看了 python-announce-list,但它有无数我不感兴趣的开源项目的通知。

security
  • 2 个回答
  • 94 Views
Martin Hope
Ram Rachum
Asked: 2013-02-08 18:03:44 +0800 CST

错误设置 stunnel 服务器:`SSL3_GET_CLIENT_HELLO:错误的版本号`

  • 9

我stunnel在 Windows XP 上设置服务器,当客户端尝试访问时出现此错误:

2013.02.14 00:02:16 LOG7[8848:7664]: Service [https] accepted (FD=320) from 107.20.36.147:56160
2013.02.14 00:02:16 LOG7[8848:7664]: Creating a new thread
2013.02.14 00:02:16 LOG7[8848:7664]: New thread created
2013.02.14 00:02:16 LOG7[8848:9792]: Service [https] started
2013.02.14 00:02:16 LOG5[8848:9792]: Service [https] accepted connection from 107.20.36.147:56160
2013.02.14 00:02:16 LOG7[8848:9792]: SSL state (accept): before/accept initialization
2013.02.14 00:02:16 LOG7[8848:9792]: SSL alert (write): fatal: handshake failure
2013.02.14 00:02:16 LOG3[8848:9792]: SSL_accept: 1408A10B: error:1408A10B:SSL routines:SSL3_GET_CLIENT_HELLO:wrong version number
2013.02.14 00:02:16 LOG5[8848:9792]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
2013.02.14 00:02:16 LOG7[8848:9792]: Local socket (FD=320) closed
2013.02.14 00:02:16 LOG7[8848:9792]: Service [https] finished (0 left)

知道该怎么办吗?我在网上读到这可能意味着我的服务器在宣传它可以在 SSL3 中通信,但实际上不能。如果这是真的,我想知道如何解决这个问题。我正在编辑该stunnel.conf文件,但我不知道要在其中更改什么来解决此问题。

更新:

仅当 Twilio 客户端(即 Twilio 的服务器)尝试访问我的服务器时,才会显示以上错误消息。当我尝试使用我的一台计算机访问我的服务器时,该页面确实显示,但在内容显示后,Chrome 将页面显示为“正在加载”大约 30 秒,最后显示stunnel以下消息:

transfer: s_poll_wait: TIMEOUTclose exceeded: closing

更新:

这是 wireshark 捕获:https ://gist.github.com/cool-RR/4963477

上限文件:https ://dl.dropbox.com/u/1927707/wireshark.cap

请注意,服务器在端口 8088 上运行。

更新:

这是来自服务器的日志(debug=7):

2013.02.17 17:06:52 LOG7[7636:2092]: No limit detected for the number of clients
2013.02.17 17:06:52 LOG5[7636:2092]: stunnel 4.54 on x86-pc-msvc-1500 platform
2013.02.17 17:06:52 LOG5[7636:2092]: Compiled/running with OpenSSL 1.0.1c-fips 10 May 2012
2013.02.17 17:06:52 LOG5[7636:2092]: Threading:WIN32 SSL:+ENGINE+OCSP+FIPS Auth:none Sockets:SELECT+IPv6
2013.02.17 17:06:52 LOG5[7636:2092]: Reading configuration from file stunnel.conf
2013.02.17 17:06:52 LOG5[7636:2092]: FIPS mode is enabled
2013.02.17 17:06:52 LOG7[7636:2092]: Compression not enabled
2013.02.17 17:06:52 LOG7[7636:2092]: Snagged 64 random bytes from C:\Documents and Settings\User/.rnd
2013.02.17 17:06:52 LOG7[7636:2092]: Wrote 1024 new random bytes to C:\Documents and Settings\User/.rnd
2013.02.17 17:06:52 LOG7[7636:2092]: PRNG seeded successfully
2013.02.17 17:06:52 LOG6[7636:2092]: Initializing service [https]
2013.02.17 17:06:52 LOG7[7636:2092]: Certificate: G:\Dropbox\StartSSL\SSL Cert.pem
2013.02.17 17:06:52 LOG7[7636:2092]: Certificate loaded
2013.02.17 17:06:52 LOG7[7636:2092]: Key file: G:\Dropbox\StartSSL\SSL Cert.pem
2013.02.17 17:06:52 LOG7[7636:2092]: Private key loaded
2013.02.17 17:06:52 LOG7[7636:2092]: Could not load DH parameters from G:\Dropbox\StartSSL\SSL Cert.pem
2013.02.17 17:06:52 LOG7[7636:2092]: Using hardcoded DH parameters
2013.02.17 17:06:52 LOG7[7636:2092]: DH initialized with 2048-bit key
2013.02.17 17:06:52 LOG7[7636:2092]: ECDH initialized with curve prime256v1
2013.02.17 17:06:52 LOG7[7636:2092]: SSL options set: 0x03000004
2013.02.17 17:06:52 LOG5[7636:2092]: Configuration successful
2013.02.17 17:06:52 LOG7[7636:2092]: Service [https] (FD=268) bound to 0.0.0.0:8088
2013.02.17 17:07:08 LOG7[7636:2092]: Service [https] accepted (FD=320) from 54.242.25.199:45922
2013.02.17 17:07:08 LOG7[7636:2092]: Creating a new thread
2013.02.17 17:07:08 LOG7[7636:2092]: New thread created
2013.02.17 17:07:08 LOG7[7636:8004]: Service [https] started
2013.02.17 17:07:08 LOG5[7636:8004]: Service [https] accepted connection from 54.242.25.199:45922
2013.02.17 17:07:08 LOG7[7636:8004]: SSL state (accept): before/accept initialization
2013.02.17 17:07:08 LOG7[7636:8004]: SSL alert (write): fatal: handshake failure
2013.02.17 17:07:08 LOG3[7636:8004]: SSL_accept: 1408A10B: error:1408A10B:SSL routines:SSL3_GET_CLIENT_HELLO:wrong version number
2013.02.17 17:07:08 LOG5[7636:8004]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
2013.02.17 17:07:08 LOG7[7636:8004]: Local socket (FD=320) closed
2013.02.17 17:07:08 LOG7[7636:8004]: Service [https] finished (0 left)

更新:

这是我的stunnel.conf文件。

windows
  • 2 个回答
  • 24069 Views
Martin Hope
Ram Rachum
Asked: 2009-10-10 18:05:41 +0800 CST

使`wget`不保存页面

  • 86

我正在使用该wget程序,但我不希望它保存我正在下载的 html 文件。我希望它在收到后被丢弃。我怎么做?

wget
  • 9 个回答
  • 80899 Views
Martin Hope
Ram Rachum
Asked: 2009-09-21 23:15:14 +0800 CST

安装 MySQLdb Python 包

  • 2

我试图在我的 CentOS 5.1 机器上安装 MySQLdb Python 包,但没有成功。

一开始我尝试使用easy_install,但它安装的版本是1.2.1,对于Django来说太旧了,至少需要1.2.1p2。

所以我去SourceForge 项目站点下载源代码。我将存档放在我的桌面上并解压缩到那里的文件夹中。然后我按照说明安装,用setup.py build和setup.py install. 起初这似乎可行,但发生了一件反常的事情:它在处理包时使用了桌面上的文件夹!我知道是因为我尝试用 Python 导入包,它给了我一些警告,提到我桌面上的路径!

这里发生了什么,我能做什么?

(注:这里安装的Python版本是2.4)

mysql
  • 1 个回答
  • 1159 Views
Martin Hope
Ram Rachum
Asked: 2009-09-20 13:25:22 +0800 CST

在 Linux 中设置 VNC 服务器

  • 1

我有一个 CentOS 机器,我想为它设置一个 VNC 服务器。(这不是生产服务器,只是我的家用电脑。)

我习惯了 Windows 中的 RealVNC 服务器,它只是向您显示本地用户看到的相同屏幕。我尝试了一些随我的发行版一起提供的 VNC 服务器,但我工作的唯一一个向我展示了一个非常丑陋的非 Gnome 桌面。

是否有用于 CentOS 的普通 VNC 服务器向客户端显示本地用户看到的相同桌面?

centos
  • 3 个回答
  • 712 Views
Martin Hope
Ram Rachum
Asked: 2009-09-19 07:39:18 +0800 CST

在 VMware 中设置服务器

  • 0

我在 VMware 中有一个 Linux 虚拟机。在虚拟机中,我设置了某个服务器。我希望其他人能够从 Internet 访问该服务器。我的真机路由器已经设置好将特定端口转发到真机,但是如何让VM捕捉来自真机内部的请求呢?

vmware-server
  • 3 个回答
  • 939 Views
Martin Hope
Ram Rachum
Asked: 2009-09-17 15:11:09 +0800 CST

如何让 MySQL 在用户 `mysql` 下启动时运行?

  • 0

我在 CentOS 上使用 MySQL,我希望它在启动时在mysql用户下运行。/sbin/chkconfig --level 35 mysqld on我从我的用户那里尝试过cool-RR,但这似乎使 mysql 尝试以cool-RR 运行。如何让它以用户身份在启动时运行mysql?

linux
  • 3 个回答
  • 387 Views

Sidebar

Stats

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

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve