使用腾讯云短信服务,发送验证码。 堆栈提示:
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at sun.security.ssl.Alerts.getSSLException(Alerts.java:214)
……
at com.github.qcloudsms.SmsSingle
我使用PHP来创建验证码图像。它显示了加载时的验证码。加载完成后,在Chrome中不会显示验证码图像。在其他浏览器中,它工作得很好。为什么?
<?php
// Create an image from button.png
$image = imagecreatefrompng('button.png');
// Set the font colour
$colour = imagecolorallocate($image, 255, 120, 4);
// Set the font
$font = '../fonts/Anorexia.ttf';