Azure trusted signing w/ apksigner fails
The command below fails to run with the following error: Failed to load signer "signer #1": NONE entry "<accountName>/<profileName>" does not contain a key.
java -cp apksigner.jar:jsign.jar com.android.apksigner.ApkSignerTool sign \
--provider-class net.jsign.jca.JsignJcaProvider \
--provider-arg https://neu.codesigning.azure.net \
--ks NONE \
--ks-type TRUSTEDSIGNING \
--ks-pass env:ACCESS_TOKEN \
--ks-key-alias <accountName>/<profileName> \
--in app.apk
Jsign is otherwise working. E.g. jsign --storetype TRUSTEDSIGNING --keystore neu.codesigning.azure.net --storepass env:ACCESS_TOKEN --alias <accountName>/<profileName> app.msix successfully completes.
Do you get more details with the --verbose option?
No. I should also mention that I'm using apksigner bundled with Android 35.
And you use a fresh token generated just before invoking apksigner?
Yes
Did you try --ks-pass pass:$ACCESS_TOKEN instead of --ks-pass env:ACCESS_TOKEN?
Yes I've tried that too. I should add that the error appears instantaneously without seemingly making any http request (I am even able to reproduce the error without an internet connection (I would expect another, network, error then)).
And you've downloaded jsign-7.1.jar from the release page, renamed it to jsign.jar, and placed it in the current directory, right?
Yes, I've used both the release page's .deb and .jar files.