gpt4 book ai didi

ssl - 如何在 Ubuntu 上运行的 CouchDB 上启用 SSL?

转载 作者:太空宇宙 更新时间:2023-11-03 13:37:47 24 4
gpt4 key购买 nike

我想我已经准备好一切正常工作,也许我缺少一些 Apache 配置。

我的 couchdb/local.ini :

[ssl]
cert_file = /home/ubuntu/keys/ssl_certificate.crt
key_file = /home/ubuntu/keys/couchdb.nossocatalogo.key
verify_ssl_certificates = false
cacert_file = /home/ubuntu/keys/intermediario.crt
ssl_certificate_max_depth = 1

这是我在本地 curl 时得到的结果:

$ curl -k -v https://127.0.0.1:6984/
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 6984 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Request CERT (13):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using ECDHE-RSA-AES256-SHA384
* Server certificate:
* subject: OU=Domain Control Validated; CN=couchdb.nossocatalogo.com
* start date: 2015-12-03 12:52:50 GMT
* expire date: 2016-12-03 12:52:50 GMT
* issuer: C=BE; O=GlobalSign nv-sa; CN=AlphaSSL CA - SHA256 - G2
* SSL certificate verify ok.
> GET / HTTP/1.1
> User-Agent: curl/7.35.0
> Host: 127.0.0.1:6984
> Accept: */*
>
< HTTP/1.1 200 OK
* Server CouchDB/1.6.1 (Erlang OTP/R16B03) is not blacklisted
< Server: CouchDB/1.6.1 (Erlang OTP/R16B03)
< Date: Fri, 04 Dec 2015 12:33:38 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 127
< Cache-Control: must-revalidate
<
{"couchdb":"Welcome","uuid":"67f735de026497422ce78b7184b4864d","version":"1.6.1","vendor":{"name":"Ubuntu","version":"14.04"}}
* Connection #0 to host 127.0.0.1 left intact

但从外部来看,我仍然有问题。我无法通过 https://couchdb.nossocatalogo.com:6984/ 访问

我错过了什么吗?

最佳答案

似乎与 Ubuntu 14.04 和 CouchDB 上的 SSL 有冲突。我在阅读本页的问题和问题部分时发现: https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=48203146

因此,为了解决这个问题,我升级了 Ubuntu 版本并按照此处找到的教程进行操作: http://www.unixmen.com/installing-apache-couchdb-databse-ubuntu-15-04/

现在可以了!

关于ssl - 如何在 Ubuntu 上运行的 CouchDB 上启用 SSL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34088833/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com