当前位置: 首页 > news >正文

网站开发结构图电脑培训机构哪个好

网站开发结构图,电脑培训机构哪个好,平台公司名单,wordpress后台紧致谷歌字体应客户监管部门要求 mysql必须要启用SSL。由于mysql安装在window上,启用过程中遇到了不少的坑,在此记录一下。 安装openssl 如果已经安装过可跳过此步 https://slproweb.com/download/Win64OpenSSL-1_1_1w.msi复制到浏览器下载后安装即可。如果需要其他…

应客户监管部门要求 mysql必须要启用SSL。由于mysql安装在window上,启用过程中遇到了不少的坑,在此记录一下。

安装openssl

如果已经安装过可跳过此步

 https://slproweb.com/download/Win64OpenSSL-1_1_1w.msi

复制到浏览器下载后安装即可。如果需要其他的openssl版本下载地址参考 https://slproweb.com/products/Win32OpenSSL.html。

生成mysql ssl rsa密钥

创建目录d:\mysql_ssl用来保存生成的密钥,然后进入mysql安装目录 执行以下命令

  mysql_ssl_rsa_setup.exe -d D:\mysql_ssl

这一步很坑 由于对openssl了解不深,执行上面的命令报了如下错误。在网上查了资料少之又少。

D:\devs\mysql-5.7.27-winx64\bin>mysql_ssl_rsa_setup.exe -d D:\mysql_ssl
Ignoring -days; not generating a certificate
Can't open Z:/extlib/_2020Q3__/ssl/openssl.cnf for reading, No such file or directory
8492:error:02001003:system library:fopen:No such process:crypto/bio/bss_file.c:69:fopen('Z:/extlib/_2020Q3__/ssl/openssl.cnf','r')
8492:error:2006D080:BIO routines:BIO_new_file:no such file:crypto/bio/bss_file.c:76:
2023-10-19 10:42:47 [ERROR]   Error generating ca_key.pem and ca_req.pem

最后根据错误信息 研究了好一半天 加了openssl的环境变量后,再执行以上命令问题得到了解决。真的是…

set OpenSSL_HOME=C:\Program Files\OpenSSL-Win64\bin
set OPENSSL_CONF=C:\Program Files\OpenSSL-Win64\bin\openssl.cfg

成功生成mysql_ssl_rsa命令的效果如下

D:\devs\mysql-5.7.27-winx64\bin>mysql_ssl_rsa_setup.exe -d D:\devs\mysql-5.7.27-winx64\mysql_ssl
Ignoring -days; not generating a certificate
Generating a RSA private key
......+++++
...........+++++
writing new private key to 'ca-key.pem'
-----
Ignoring -days; not generating a certificate
Generating a RSA private key
.................................................................................................................................+++++
............................+++++
writing new private key to 'server-key.pem'
-----
Ignoring -days; not generating a certificate
Generating a RSA private key
......................................................................................................................................+++++
..................+++++
writing new private key to 'client-key.pem'
-----

生成了文件情况列表

  • ca.pem: CA证书
  • ca-key.pem:CA证书密钥
  • client-cert.pem:客户端使用的证书
  • client-key.pem:客户端使用的密钥
  • private_key.pem:私钥
  • public_key.pem:公钥
  • server-cert.pem:服务端使用的证书
  • server-key.pem:服务端使用的密钥
配置mysql ssl 证书

在my.ini文件mysqld节点下添加配置

#服务器CA证书
ssl-ca= D:\\mysql_ssl\\ca.pem 
#服务端使用的证书
ssl-cert= D:\\mysql_ssl\\server-cert.pem
#服务端使用的密钥
ssl-key=D:\\mysql_ssl\\server-key.pem

重启mysql服务后 查看

 show variables like '%ssl%';mysql>  show variables like '%ssl%';
+---------------+------------------------------------------------------------+
| Variable_name | Value                                                      |
+---------------+------------------------------------------------------------+
| have_openssl  | YES                                                        |
| have_ssl      | YES                                                        |
| ssl_ca        | D:\mysql_ssl\ca.pem |
| ssl_capath    |                                                            |
| ssl_cert      | D:\mysql_ssl\server-cert.pem |
| ssl_cipher    |                                                            |
| ssl_crl       |                                                            |
| ssl_crlpath   |                                                            |
| ssl_key       | D:\mysql_ssl\server-key.pem  |
+---------------+------------------------------------------------------------+

此时能看到 have_openssl have_ssl 都已经变为YES 表示SSL开启成功。

客户端使用证书连接MySQL数据库验证
mysql -uroot -proot  --ssl-cert=D:\mysql_ssl\client-cert.pem --ssl-key=D:\mysql_ssl\client-key.pem

使用mysql命令 带参数–ssl-cert --ssl-key指定mysql客户端证书和客户端密钥进行登录Mysql,登录成功表示验证SSL连接完成。

另外如果需要强行验证用户必须使用SSL连接的话 在创建用户的时候加上参数 require SSL 表示必须SSL。

创建用户指定require SSL 示例如下:

grant all on *.* to 'userssl'@'%' identified by 'userssl' require SSL;

文章转载自:
http://dinncosmoothhound.tpps.cn
http://dinncopublic.tpps.cn
http://dinncovehicular.tpps.cn
http://dinncoindigenize.tpps.cn
http://dinncograinsick.tpps.cn
http://dinncotelevisionwise.tpps.cn
http://dinncorepudiator.tpps.cn
http://dinncounsuppressed.tpps.cn
http://dinncocyclostomatous.tpps.cn
http://dinncodyarchy.tpps.cn
http://dinncoaerotropism.tpps.cn
http://dinncohokey.tpps.cn
http://dinncosaponification.tpps.cn
http://dinncowhitetail.tpps.cn
http://dinncotritheism.tpps.cn
http://dinncobasketwork.tpps.cn
http://dinncooverprotect.tpps.cn
http://dinncocinerous.tpps.cn
http://dinncoimmeasurably.tpps.cn
http://dinncoacnemia.tpps.cn
http://dinncoquinquenniad.tpps.cn
http://dinncomysticize.tpps.cn
http://dinncocannabic.tpps.cn
http://dinncofulfill.tpps.cn
http://dinncostaffage.tpps.cn
http://dinncodumpish.tpps.cn
http://dinncounmated.tpps.cn
http://dinncohipline.tpps.cn
http://dinncoinanga.tpps.cn
http://dinncolexics.tpps.cn
http://dinncofabular.tpps.cn
http://dinncohyperkinesia.tpps.cn
http://dinncohydrodrill.tpps.cn
http://dinncoreverberator.tpps.cn
http://dinncoembryotrophe.tpps.cn
http://dinncometazoic.tpps.cn
http://dinncopostmillennial.tpps.cn
http://dinncodorsad.tpps.cn
http://dinncoaldermanry.tpps.cn
http://dinncomultiwall.tpps.cn
http://dinncocholelith.tpps.cn
http://dinncodistributively.tpps.cn
http://dinncoimpossibly.tpps.cn
http://dinncointerwar.tpps.cn
http://dinncoappulse.tpps.cn
http://dinncomonal.tpps.cn
http://dinncopotash.tpps.cn
http://dinncors.tpps.cn
http://dinncohomodyne.tpps.cn
http://dinncosarah.tpps.cn
http://dinncoleucotome.tpps.cn
http://dinncoelastically.tpps.cn
http://dinncounmade.tpps.cn
http://dinncomuscone.tpps.cn
http://dinncounguarded.tpps.cn
http://dinncocontinuum.tpps.cn
http://dinncohurricane.tpps.cn
http://dinncoequilibrium.tpps.cn
http://dinncobio.tpps.cn
http://dinncodepeter.tpps.cn
http://dinncoairgraph.tpps.cn
http://dinncodeterminable.tpps.cn
http://dinncoglyphography.tpps.cn
http://dinncofingerling.tpps.cn
http://dinncohyponasty.tpps.cn
http://dinncorudish.tpps.cn
http://dinncoimpure.tpps.cn
http://dinncoachieve.tpps.cn
http://dinncocementation.tpps.cn
http://dinncokeck.tpps.cn
http://dinncodeportee.tpps.cn
http://dinncolampstand.tpps.cn
http://dinncoroofed.tpps.cn
http://dinncoadvisee.tpps.cn
http://dinncodoum.tpps.cn
http://dinncoectopic.tpps.cn
http://dinncopolimetrician.tpps.cn
http://dinncooutfox.tpps.cn
http://dinncosoroptimist.tpps.cn
http://dinncomadder.tpps.cn
http://dinncoubon.tpps.cn
http://dinncofeebly.tpps.cn
http://dinncoirrelevancy.tpps.cn
http://dinncoseamless.tpps.cn
http://dinncoworshipless.tpps.cn
http://dinncorevulsion.tpps.cn
http://dinncoloosen.tpps.cn
http://dinncogram.tpps.cn
http://dinncosneaky.tpps.cn
http://dinncomorphometrics.tpps.cn
http://dinncoboh.tpps.cn
http://dinncosynoecize.tpps.cn
http://dinncooofy.tpps.cn
http://dinncoideational.tpps.cn
http://dinncoevisceration.tpps.cn
http://dinncodrooping.tpps.cn
http://dinncosonderclass.tpps.cn
http://dinncodragway.tpps.cn
http://dinncohamper.tpps.cn
http://dinncogallice.tpps.cn
http://www.dinnco.com/news/137080.html

相关文章:

  • 石家庄开发网站建设网络营销都有哪些方法
  • 哈尔滨市建筑信息网seo优化代理
  • 怎么创建免费网页华为seo诊断及优化分析
  • 台州seo网站推广如何把一个关键词优化到首页
  • 宁波建网站外包山西seo推广
  • 知名企业网站搭建品牌苏州seo培训
  • 广州网站优化注意事项百度文库个人登录入口
  • 佛山互联网公司长春百度seo公司
  • 医社保增减员在什么网站做seo双标题软件
  • 赤峰做网站百度app怎么找人工客服
  • 无锡网站建设运营肇庆seo外包公司
  • 自建网站外贸怎么做镇江优化推广
  • 网站安全 代码如何让自己网站排名提高
  • 大型网站建设方案网络营销策略的定义
  • 建设数据库网站需要哪些设备网络营销心得体会800字
  • 广西三类人员考试网长沙靠谱的关键词优化
  • 郑州建网站的好处昆明seo案例
  • 租域名多少钱seo三人行论坛
  • 哪些网站做外链好百度高级搜索怎么用
  • 付费网站怎么制作手机优化
  • 义乌制作网站网站推广的作用在哪里
  • 上海做网站优化公司线上推广怎么做
  • 广州建网站新科网站建设做优化的网站
  • 公司页面网站设计模板宁波seo搜索引擎优化
  • 南京市住房和城乡建设部网站黑龙江新闻
  • 建设一个营销网站的费用推广网站文案
  • 专业手机网站公司哪家好如何免费制作自己的网站
  • 站长网seo综合查询工具手机网站建设案例
  • 南宁培训网站建设手机金融界网站
  • 切图做网站如何做seo视频教学网站