博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
MySQL主从ssl加密传输签署证书报错解决
阅读量:6925 次
发布时间:2019-06-27

本文共 719 字,大约阅读时间需要 2 分钟。

案例:今天实施MySQL主从+SSL加密传输时候,master为slave签署证书有一个小小问题:

failedto update database TXT_DBerror number 2

[root@mysql-masterssl]# openssl ca -in /tmp/slave.csr -out /tmp/slave.crt -days 3650

一开始没留意,最后导致在slave通过证书连接master时候报错证书错误。仔细检查才看到错误。


1、报错原因:

This thing happens when certificates share common data. You cannot have two 

certificates that look otherwise the same. 

意思当证书共享数据,不能两个相同。

2、解决方式:

2.1)修改index.txt.attr为no(采用)

[root@mysql-master CA]# cat index.txt.attrunique_subject = no[root@mysql-master CA]#

2.2)将comonName设置为不同

  在master和slave中,因为我用的名字都是renzhiyuan,才造成了这个问题。

3、slave重新登陆:(解决)

mysql-urepuser -pxxx -h192.168.1.220 --ssl-ca=/etc/mysql/ssl/cacert.pem--ssl-cert=/etc/mysql/ssl/slave.crt --ssl-key=/etc/mysql/ssl/slave.key

转载地址:http://mldjl.baihongyu.com/

你可能感兴趣的文章
我的友情链接
查看>>
基于mezzanine的***比赛环境搭建及漏洞构造
查看>>
snmp协议
查看>>
【Touch&input 】处理控制器操作(16)
查看>>
Form表单验证
查看>>
传统OA厂商举步维艰
查看>>
【入门篇】Android学习笔记——常用布局
查看>>
我的友情链接
查看>>
Java应用服务器WildFly
查看>>
Hello 51CTO Blog
查看>>
Python 多重继承
查看>>
实战:搭建一个Internet域名解析环境
查看>>
用Ji框架进行HTML/XML解析的过程
查看>>
J2EE开发一点总结
查看>>
交换机基本配置
查看>>
北京户口的知识
查看>>
linux常见故障排除
查看>>
mysql中关于用户自定义的变量
查看>>
SCCM 2016 为客户端分发管理组件Configuration Manager(二)
查看>>
DVWA+SQLmap+Mysql注入实战
查看>>