SSL设置无效

问答中心分类: JAVASSL设置无效
29285230 asked 7 年 ago
我使用的阿里云ESC, JAVA版的镜像
安装文档设置完成后,不通过HTTPS可以打开网站,使用HTTPS后打不开。
以下是我的操作步骤:
[root@iZ86xzxqikzc12Z oneinstack]# ./vhost.sh
#######################################################################
# OneinStack for CentOS/RadHat 6+ Debian 7+ and Ubuntu 12+ #
# For more information please visit https://oneinstack.com #
#######################################################################
Do you want to setup SSL under Nginx? [y/n]: y
Please input domain(example: http://www.example.com): ssl.xxxx.com
Please input the directory for the domain:ssl.xxxx.com :
(Default directory: /data/wwwroot/ssl.xxxx.com):
Virtual Host Directory=/data/wwwroot/ssl.xxxx.com
Create Virtul Host directory……
set permissions of Virtual Host directory……
domain=ssl.xxxx.com
Do you want to add more domain name? [y/n]: n
Do you want to redirect all HTTP requests to HTTPS? [y/n]: y
Do you want to use a Let\’s Encrypt certificate? [y/n]: y
Please enter Administrator Email(example: admin@example.com): xxxx@qq.com
Do you want to add hotlink protection? [y/n]: n
Allow Nginx/Tengine/OpenResty access_log? [y/n]: y
You access log file=/data/wwwlogs/ssl.xxxx.com_nginx.log
nginx: [warn] \”ssl_stapling\” ignored, issuer certificate not found for certificate \”/usr/local/nginx/conf/ssl/ssl.xxxx.com.crt\”
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
Reload Nginx……
nginx: [warn] \”ssl_stapling\” ignored, issuer certificate not found for certificate \”/usr/local/nginx/conf/ssl/ssl.xxxx.com.crt\”
Stoping Tomcat
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/java/default
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
waiting for processes to exit
Starting tomcat
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/java/default
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Tomcat started.
Tomcat is running with pid: 11590
#######################################################################
# OneinStack for CentOS/RadHat 6+ Debian 7+ and Ubuntu 12+ #
# For more information please visit https://oneinstack.com #
#######################################################################
Your domain: ssl.xxxx.com
Nginx Virtualhost conf: /usr/local/nginx/conf/vhost/ssl.xxxx.com.conf
Tomcat Virtualhost conf: /usr/local/tomcat/conf/vhost/ssl.xxxx.com.xml
Directory of: /data/wwwroot/ssl.xxxx.com
Let\’s Encrypt SSL Certificate:/etc/letsencrypt/live/ssl.xxxx.com/fullchain.pem
SSL Private Key: /etc/letsencrypt/live/ssl.xxxx.com/privkey.pem

1 Answers
oneinstack answered 7 年 ago

具体什么报错?