我可以在 MySQL 中自动为 SSL 证书插入 PEM 文件的密码吗? [英] Can I automate inserting password of PEM file for SSL certificates in MySQL?

查看:117
本文介绍了我可以在 MySQL 中自动为 SSL 证书插入 PEM 文件的密码吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我的服务器出现故障时,我都需要登录并手动重新启动 MySQL,以便我可以在 PEM 文件中输入密码.

Whenever my server goes down, I need to login and manually restart MySQL so I can type in the password to the PEM file.

有没有办法自动执行此操作?

Is there a way to automate this?

推荐答案

使用 openssl 删除你的私钥的密码:

Use openssl to remove the pass phrase of your private key:

cp mysql.key mysql.key.orig
openssl rsa -in mysql.key.orig -out mysql.key

您将被要求输入密码;之后,无需输入密码即可使用密钥.

You will be asked for the pass phrase; afterwards, the key can be used without having to enter a password.

这篇关于我可以在 MySQL 中自动为 SSL 证书插入 PEM 文件的密码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆