Articles of openssl

RSA服务器证书CommonName(CN)`MYSERVER'与服务器名称不匹配

我刚刚启动了一个新的网站,并安装了一个证书,我开始在ssl_erro_log中获得以下错误消息: [Fri Jun 21 15:24:53 2013] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Fri Jun 21 15:24:53 2013] [warn] RSA server certificate CommonName (CN) `MYSERVER' does NOT match server name!? 现在我的网站特定的SSLconfiguration如下所示: <VirtualHost 10.65.61.12:443> ServerName www.mywebsite.com ServerAlias mywebsite.com www.mywebsite.co.uk mywebsite.co.uk DocumentRoot /data1/www/sites/www.mywebsite.com/public ErrorLog /data1/log/httpd/www.mywebsite.com/error.log CustomLog /data1/log/httpd/www.mywebsite.com/access.log combined <Directory /data1/www/sites/www.mywebsite.com/public> AllowOverride […]

Nginx和openSSL conf使用最新的TLS协议

自从几个星期以来,我的networking服务器Niginx在TLS协议1.1和1.2版本中遇到了问题: 当用户尝试连接到我的网站时,Web浏览器和Nginx 仅selectTLS 1.0作为连接。 在Nginx的虚拟主机conf文件中,我提到要使用TLS 1.0,1.1和1.2: ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers AES256-SHA256:AES256-SHA; ssl_prefer_server_ciphers on; 软件包版本(两者都是最新版本): nginx版本:nginx / 1.4.2启用了TLS SNI支持的configuration参数:–prefix = / etc / nginx –sbin -path = / usr / sbin / nginx –conf -path = /etc/nginx/nginx.conf – -error-log-path = / var / log / nginx / error.log –http-log-path = / var / log / […]

使用OpenSSL客户端连接到URL的工作,但curl失败

我有一个CentOS 5.9服务器,我需要将SSL连接到另一台服务器。 远程服务器拥有最终由GeoTrust Global CA签署的证书。 在撰写本文时,此证书是GeoTrust下载页面上列出的第二个证书。 我得到不一致的结果,取决于我使用OpenSSL还是curl来build立连接: openssl s_client -connect <server>:443 -CAfile /path/to/GeoTrustCA.pem 工作正常,但是 curl –cacert /path/to/GeoTrustCA.pem https://<server>/ 标准的“无法validation证书”错误失败。 以下是我正在使用的工具的详细信息: $ curl –version curl 7.15.5 (i386-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 Protocols: tftp ftp telnet dict ldap http file https ftps Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz 和 $ openssl version OpenSSL 0.9.8e-fips-rhel5 01 […]

Windows Server上的OpenSSL从pfx中提取证书链

我试图将我们的证书上传到AWS证书存储以便与CloudFront一起使用。 首先,我尝试上传没有链束。 当我尝试在CloudFront端点上启用它时,导致出现错误,表示它没有有效的证书链。 所以我尝试使用以下命令从PFX存档提取证书链: openssl pkcs12 -in archive.pfx -nodes -nokeys -cacerts -passin pass:password | openssl x509 -chain -out bundle.crt 但它说, unknown option -chain我google了很多,但每次我打开一个页面,解释如何提取链束它说使用-chain切换。 我想也许只是尝试上传第一个命令的输出就足够了。 当我这样做时,AWS-CLI说: Unable to validate certificate chain. The certificate chain must start with the immediate signing certificate, followed by any intermediaries in order. The index within the chain of the invalid certificate […]

我如何使用openssl通过端口389而不是636(TLS)下载我的ldap证书?

我曾经使用以下命令从LDAP下载我的服务器SSL证书,以将它们添加到tomcat / java密钥库: openssl s_client -connect 10.140.136.192:636 由于LDAP SSL(端口636)已被弃用,我没有端口636可用了。 我试图findopenssl s_client各种咒语,例如-starttls和-tls1_2但是没有一个产生证书。 什么是这个魔术词呢?

AWS MySQL错误2026(HY000):SSL连接错误:

我试图用OSX El Captain上的terminal连接到我的AWS RDS MySQL实例,但是我一直得到这个错误: ERROR 2026 (HY000): SSL connection error: error:00000001:lib(0):func(0):reason(1) 这是一个新鲜的OSX安装,我用brew来安装mysql以及openssl,我可以连接到本地服务器。 另外它似乎MySQL的工作台完美的工作。 我的Ubuntu机器也通过terminal连接到RDS实例。

从Kemp Loadmaster中提取密钥和证书?

我正努力摆脱几年前买来的一套Kemp Loadmasters来提供对我们网站的访问权限。 这个过程的一部分将会把关键和证书放在新的解决scheme中(HAproxy和nginx做SSL)。 不幸的是,我遇到了一个问题 Kemp拥有内置的证书pipe理function,只需按一下button即可生成CSR。 它还支持导入已签名的证书,但据我所知,它不允许任何types的密钥本身导出。 有一个“备份密钥和证书”的能力,但是这里是手册的内容: LoadMaster supports exporting of ALL certificate information. This includes private key, host and intermediate certificates. The export file is designed to be used for import into another LoadMaster and is encrypted. Export and import can be completed using the WUI at Certificates -> Backup/Restore Certs. Please make sure […]

为什么我不能导出导入为可导出的证书?

在Windows 2008上,我使用OpenSSL生成自签名证书(openssl.cfg文件为空): openssl.exe req -x509 -config openssl.cfg -days 10950 -subj "/CN=ComputerName/OU=Organization/ST=OR/C=US/" -newkey rsa:2048 -keyout private.pem -out public.pem -nodes openssl.exe pkcs12 -export -in public.pem -nodes -inkey private.pem -name "Self-Signed SSL Certificate" -out ssl.cer -passout pass: 然后使用“证书”pipe理单元将证书导入到个人存储中。 当我导入它时,我选中“将此键标记为可导出”。 但是,当我尝试导出证书时,“是,导出私钥”选项呈灰色,并且在对话框中有一个注释,指出“注意:无法find相关的私钥”。 为什么我不能导出我的证书?

libssl和libcrypto向后兼容?

我有一个旧的服务器应用程序,需要libssl.so.0.9.6和libcrypto.so.0.9.6。 我的问题是我目前在我的系统上有libssl.so.1.0.0a和libcrypto.so.1.0.0a。 我尝试symlinking到新的库,它让我通过错误,当启动服务器应用程序,但一旦应用程序收到一个新的连接立即崩溃。 但是,为什么没有给出任何错误。 我也尝试从旧的RPM提取这些库,并将它们放在Linux服务器上的正确位置,我会得到同样的问题。 我禁用了SELinux并禁用了iptables。 我有端口转发正确,但是这个问题一直坚持。 在另一台Linux服务器上,我正在运行一个旧的CentOS版本,并且需要openssl版本,而且运行没问题。 我想我已经缩小到与openssl版本的问题。 有没有人有任何想法,为什么这可能会发生,或者如果openssl向后兼容这样一个旧版本。

validationencryption焦油的完整性

我使用tar和openssl来创build一些大型目录(约30GB)的encryption的tar档案。 在这个过程中腐败的可能性是什么,我将如何validationencryption的tar档案没有损坏? 这是我用来制作encryption档案的命令: tar cvzf – /secret_dir | openssl enc -aes256 -salt -pass file:passfile > encrypted_data.tar.gz