证书查看服务器名称

证书查看服务器名称

本文介绍了根据 SSL 证书查看服务器名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在安装 SSL 证书时遇到问题.我认为服务器名称与证书的服务器名称不匹配的问题.

I have a problem installing the SSL certificates. The problem i think the server name doesn't match the certificate's server name.

这里是确切的 Apache 问题:

Here the exact Apache problem:

[Wed Oct 02 18:33:23 2013] [warn] RSA server certificate CommonName (CN) `name1.name2.fr' does NOT match server name!?
[Wed Oct 02 18:33:23 2013] [error] Unable to configure RSA server private key
[Wed Oct 02 18:33:23 2013] [error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
[Wed Oct 02 18:34:00 2013] [warn] RSA server certificate CommonName (CN) `name1.name2.fr' does NOT match server name!?
[Wed Oct 02 18:34:00 2013] [error] Unable to configure RSA server private key
[Wed Oct 02 18:34:00 2013] [error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch

我们使用 RHEL 6.如何查看服务器名称以及如何更改它?

We use RHEL 6. How can i see the server name and how to change it ?

提前致谢.

推荐答案

你必须先设置Server的DNS名称:

You have to set the Server's DNS name first:

so perform the command
$ sudo gksu gedit  /etc/hostname  to edit the hostname file
add the line www.example.com

$ sudo  /etc/hosts and add the line:
127.0.0.1   www.example.com localhost

之后确保在创建或签署证书时使用该域名

After that make sure to use that domain name in creating or signing the certificate

这篇关于根据 SSL 证书查看服务器名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 14:54