草庐IT

delay-sign

全部标签

php - 警告 : openssl_pkcs7_sign(): error getting private key using WAMP

我正在尝试使用TCPDF签署PDF,但出现此错误:Warning:openssl_pkcs7_sign():errorgettingprivatekeyinC:\wamp\www\tcpdf\tcpdf.phponline7594.我的PHP版本是5.5.12和TCPDF6.2.11。Windows7。其他示例运行良好,但失败了。我试过:'file://'.(dirname(FILE)).'./path/to/file'andagain$certificate='file://'.realpath('../tcpdf.crt');但对我不起作用。 最佳答案

PHP openssl_sign 停止执行所有脚本

我在使用openssl时遇到问题。为了更好地查明问题,我做了两件事;我将代码缩减为单个测试页(我已从php.net中删除)。在问题仍然存在后,我将tat代码上传到服务器。服务器按预期工作,所以问题一定出在我的设置中!?我发现有人遇到了完全相同的问题,但他的代码不同,解决方案对我不起作用(ServiceApplicationsandGoogleAnalyticsAPIV3:Error101(net::ERR_CONNECTION_RESET))。这是代码:private_key.txt//opensslrsa-puboutpublic_key.txt//IMPORTANT:Thekeyp

php - IMAP 打开流 : Self signed certificate issue

我正在尝试打开非安全(端口143)IMAP连接(我正在使用PHP):imap_open('{localhost:143/imap}INBOX',USERNAME,PASS);我得到下一个错误:Certificatefailureforlocalhost:selfsignedcertificate...好的。我尝试使用/novalidate-cert邮箱参数。然后我收到另一个错误:无法向IMAP服务器进行身份验证。我还尝试组合所有可能的非安全连接参数,例如/notls、/norsh和/secure。但我总是会出错。这是我正在使用的Dovecot配置:*OK[CAPABILITYIMAP4

php - 带有 CodeIgniter 的 Facebook PHP-SDK 不返回 $_REQUEST ['signed_request']

classExampleextendsCI_Controller{function__construct(){parent::__construct();}functionindex(){$this->load->library('facebooklib');$user=$this->facebooklib->getUser();if($user){try{$data['user_profile']=$this->facebooklib->api('/me');}catch(FacebookApiException$e){$user=null;}}var_dump($_REQUEST)

PHP preg_replace oddity with £ pound sign and ã

我正在应用以下功能效果很好,但如果我将ã添加到preg_replace中,比如$new_string=preg_replace("/[^a-zA-Z0-9\sçéèêëñòóôõöàáâãäåìíîïùúûüýÿ]/","",$string);$string="Thisissometextandnumbers12345andsymbols!£%^#&$andforeignletterséèêëñòóôõöàáâäåìíîïùúûüýÿã";它与英镑符号£冲突,将英镑符号替换为黑色方block中未识别的问号。这并不重要,但有人知道这是为什么吗?谢谢,巴里更新:谢谢大家。更改函数添加u修饰

java - 启动由模板签名的 JNLP 时继续获取 "JNLPSigningException [Failed to validate signing of launch file]"

我们决定按照this对我们的JNLP文件进行签名神谕指南。由于我们有不同的JNLP,我们采用了第二种方法(使用JNLP模板签署JAR文件)。这是我们提取到模板中的代码:*MyvendorMydescription......这是我们实际使用的JNLP之一:MyApp-ProductionversionMyvendorMydescription...请注意,我将通配符(*)用于:标签jnlp中的codebase属性标签jnlp中的href属性标题标签内的内容jar标签中的属性大小两个属性的值我将模板放在适当的JNLP-INF文件夹中(也有适当的名称),然后我们签署了JAR。但是,我们不断

java - 松弛请求验证 : Can't compute matching request digest using signed secret

我正在Slack上实现交互式消息,其中包含一些操作按钮。使用SlackApp我能够处理Slack用户点击我的JavaSpringbootAPI上的按钮。到这一刻,一切都很好。但是,我努力计算匹配的请求签名(摘要)以验证它实际上来自Slack。我阅读了Slackverificationdocumentationpage上的所有文档。该页面描述,签名必须计算为HMACSHA256哈希,使用SigningSecret作为key和内容作为松弛版本、时间戳和请求主体的串联,例如:v0:123456789:command=/weather&text=94070页面上写着:...Evaluateon

JavaFX : Rotated animation delay between cycles

我使用以下代码为基于RotatedTranstion的ImageView创建了一个动画:ImageViewicon=ImageCache.getImage("refresh.png");RotateTransitionrotateTransition=newRotateTransition(Duration.millis(2000),icon);rotateTransition.setByAngle(360.0);rotateTransition.setCycleCount(Timeline.INDEFINITE);rotateTransition.play();这会产生以下动画:Ro

java - : "jarsigner: attempt to rename {file} to {file}.org failed" when signing jars with ant?失败是什么原因

我收到错误:[signjar]jarsigner:attempttorenameC:\workspace\line_editor\lib\icon.jartoC:\workspace\line_editor\lib\icon.jar.origfailed尝试在Eclipse中使用ant对一组jar进行自签名时。antbuild在这个项目中运行良好,在其他项目中也有类似的代码。我对代码做了一些小改动并尝试重建并不断收到此错误。这是相关的Ant目标:我删除了该项目并再次从我们的存储库中将其拉下。因此它与其他项目具有相同的默认项目设置,这部分不会失败。我查看了有问题的.jar,它不是只读的。

java - 使用 Java 解析 Facebook signed_request 返回格式错误的 JSON

我正在尝试在JavaServlet的doPost中解析Facebooksigned_request。我使用commons-codec-1.3的Base64解码签名请求。这是我在servlet的doPost中使用的代码StringsignedRequest=(String)req.getParameter("signed_request");Stringpayload=signedRequest.split("[.]",2)[1];payload=payload.replace("-","+").replace("_","/").trim();StringjsonString=newSt