AppStoreReportingInstructions Auto-Ingest Toolでハマる
前述のAppStoreReportingInstructions Auto-Ingest Toolをサーバ上で実行すると
The report you requested is not available at this time. Please try again in a few minutes.
のようなエラーが発生。
wgetで試行しても
$ wget https://reportingitc.apple.com/ --2013-10-21 14:45:45-- https://reportingitc.apple.com/ reportingitc.apple.com をDNSに問いあわせています... 17.151.17.11 reportingitc.apple.com|17.151.17.11|:443 に接続しています... 接続しました。 エラー: reportingitc.apple.com の証明書(発行者: /C=US/O=VeriSign, Inc./OU=VeriSign Trust Network/OU=Terms of use at https://www.verisign.com/rpa (c)06/CN=VeriSign Class 3 Extended Validation SSL SGC CA)の検証に失敗しました: 発行者の権限を検証できませんでした。 reportingitc.apple.com に安全の確認をしないで接続するには、`--no-check-certificate' を使ってください。 SSL による接続が確立できません。
となり、どうやら、サーバ上にルート証明局の証明書が入ってない模様。
で、該当のVeriSign Class 3 Extended Validation SSL SGC CAを当て込む。
# cd /etc/pki/tls/certs/ # wget http://www.verisign.com/repository/roots/root-certificates/PCA-3G5.pem # cat PCA-3G5.pem >> ca-bundle.crt
これでwget出来るようになったので、解決かと思いきや。。。
$ java Autoingestion autoingestion.properties vendorId Sales Daily Summary 20131019 The report you requested is not available at this time. Please try again in a few minutes.
まだエラー。。。
結経、javaのキーストアにimportが必要だとか。
key storeの確認
# locate jdk |grep cacerts /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/security/cacerts
先ほど落としてきたVeriSignの証明書をimport
# keytool -import -keystore /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/security/cacerts -storepass changeit -file /etc/pki/tls/certs/PCA-3G5.pem
これにて解決。