小编Dav*_*ura的帖子

PHP - 使用STARTTLS和自签名证书的Swiftmailer

我正在尝试使用STARTTLS发送带有php和swiftmailer的电子邮件,但我收到了证书错误.我具有SMTP服务器的root访问权限,并且使用的证书是自签名的.我在两台机器上使用Debian(Web服务器和smtp服务器)

PHP message: PHP Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in [..]/lib/classes/Swift/Transport/StreamBuffer.php on line 97 PHP message: PHP Fatal error: Uncaught exception 'Swift_TransportException' with message 'Unable to connect with TLS encryption' in [..]/lib/classes/Swift/Transport/EsmtpTransport.php:294

我是否需要在某个地方添加自己的证书才能接受它?或者这是一些OpenSSL配置错误?

php smtp certificate self-signed swiftmailer

12
推荐指数
3
解决办法
2万
查看次数

pygame 尝试使用 alsa

当我尝试运行一个使用 pygame 的程序时,我得到一个缓慢的“启动”(init)(4-5s)和来自 ALSA 的这个错误。修复 ALSA 不是我的目标,如果我的代码中没有使用音频,我想知道为什么要初始化它。

$ python slides.py
aaaaaaaaaa
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown …
Run Code Online (Sandbox Code Playgroud)

python pygame alsa

2
推荐指数
2
解决办法
6973
查看次数

标签 统计

alsa ×1

certificate ×1

php ×1

pygame ×1

python ×1

self-signed ×1

smtp ×1

swiftmailer ×1