openssl TXT_DB error number 2 failed to update database

安装openvpn,生产客户端密钥文件时报错

[root@cmjs-live01-636 2.0]# ./build-key client1
Generating a 1024 bit RSA private key
...........................++++++
...........++++++
writing new private key to 'client1.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [EN]:
State or Province Name (full name) [CA]:
Locality Name (eg, city) [NJ]:
Organization Name (eg, company) [Fort-Funston]:
Organizational Unit Name (eg, section) [changeme]:
Common Name (eg, your name or your server's hostname) [client1]:
Name [changeme]:
Email Address [mail@host.domain]:


Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
Using configuration from /etc/openvpn/easy-rsa/easy-rsa/2.0/openssl-1.0.0.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName           :PRINTABLE:'EN'
stateOrProvinceName   :PRINTABLE:'CA'
localityName          :PRINTABLE:'NJ'
organizationName      :PRINTABLE:'Fort-Funston'
organizationalUnitName:PRINTABLE:'changeme'
commonName            :client
name                  :PRINTABLE:'changeme'
emailAddress          :IA5STRING:'mail@host.domain'
Certificate is to be certified until Aug  1 09:50:21 2024 GMT (3650 days)
Sign the certificate? [y/n]:y

openssl TXT_DB error number 2 failed to update database 


原因是commonName   跟前面生成ca文件和server 密钥commonname相同导致,可以换一个commonname就可以了。



回答: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443是一个与OpenSSL库连接到github.com时发生的错误。根据引用和引用中的信息,这个错误可能是由于网络连接问题或系统错误引起的。可以尝试以下解决方法: 1. 检查网络连接: 确保你的网络连接稳定,并且没有任何防火墙或代理服务器阻止了与github.com的连接。 2. 更新OpenSSL库: 确保你的OpenSSL库是最新的版本,可以尝试升级到最新版本来解决潜在的错误。 3. 检查证书: 确保你的SSL证书是有效的,并且没有任何问题。可以尝试重新安装或更新证书来解决问题。 4. 检查操作系统错误: 这个错误也可能是由于操作系统的问题引起的。可以尝试在其他系统中进行操作,看看是否仍然存在相同的错误。 如果以上方法都没有解决问题,我建议你参考引用和引用中提供的链接,寻求更详细的解决方案或联系GitHub的支持团队以获取帮助。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [fatal: unable to access ‘https://github.com/xxx‘: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in ...](https://blog.csdn.net/ducp123/article/details/120718883)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [【错误记录】GitHub 提交报错 ( OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 )](https://blog.csdn.net/han1202012/article/details/121889810)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值