Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/hadoop/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Air 无法生成时间戳:连接重置_Air - Fatal编程技术网

Air 无法生成时间戳:连接重置

Air 无法生成时间戳:连接重置,air,Air,编译adobe air应用程序时出现以下错误: [java] Could not generate timestamp: Connection reset 这个应用程序在几天前编译的很好。我不知道计算机有任何配置更改。我在build.xml文件中添加了以下参数,错误消失了: <arg value="-tsa" /> <arg value="http://sha256timestamp.ws.symantec.com/sha256/timestamp" />

编译adobe air应用程序时出现以下错误:

 [java] Could not generate timestamp: Connection reset

这个应用程序在几天前编译的很好。我不知道计算机有任何配置更改。

我在build.xml文件中添加了以下参数,错误消失了:

  <arg value="-tsa" />
  <arg value="http://sha256timestamp.ws.symantec.com/sha256/timestamp" />

我的猜测是赛门铁克移动了air正在使用的时间戳服务

[编辑]
我们使用ant从命令行进行构建;ant使用一个名为build.xml的文件。如果您正在从命令行或.bat脚本运行adt命令,则需要添加
-tsahttp://sha256timestamp.ws.symantec.com/sha256/timestamp
到现有命令。

在6个月之前,类似的问题也发生过:“握手错误”

这是因为使用了Java1.6。现在,我也做了同样的事情,只是其他时间戳URL:

<arg value="-tsa http://timestamp.digicert.com" />

在进行证书续订时,我尝试使用多个证书对应用程序进行签名时遇到了相同的问题

根据Michael Potter的回答,如果您试图使用ADT对证书进行多重签名,则可以使用以下命令:

adt -migrate -tsa "http://sha256timestamp.ws.symantec.com/sha256/timestamp" -storetype pkcs12 -keystore old_cert.p12 myAppIn.air myAppOut.air
  • old_cert.p12-要添加的证书的路径(此 将是现在已过期的旧证书)
  • MyAppIn.air-使用新证书签名的应用程序
  • MyAppOut.air-启动此进程时要创建的新文件 完整的

要修复我的build.xml,我添加了:

<arg line="-tsa http://sha256timestamp.ws.symantec.com/sha256/timestamp"/>

谢谢您的帮助。确实帮助我恢复了一个旧的AIR应用程序:)