Closed Debdan1997 closed 1 year ago
Hi @Debdan1997 Thank you for your question, We are working on more prioritized issues at the moment but will get back to this one soon.
Discussed in DM. Resolved via same solution as here - https://github.com/microsoft/app-store-vsts-extension/issues/218
Question, Bug, or Feature? Type: Question
Enter Task Name: Unable to deploy using fastlane azure task with Token based authentication
Environment Azure Pipelines
Issue Description I'm unable to use AppStoreRelease to publish the app to my external testers. I have been provided with a string api_key in the format -----BEGIN PRIVATE KEY-----\nxxxxyyyyzzzz\n-----END PRIVATE KEY----- as a string key from azure keyvaults and I don't have access to the .p8 file. When I'm uploading to fastlane using local fastlane setup by providing the api_key in json, authentication is working. But azure pipelines is asking the base64 encoded version in service connection.
I tried the following $api_key_content = '-----BEGIN PRIVATE KEY-----\nxxxxyyyyzzzz\n-----END PRIVATE KEY-----'
And provided the api key to the service connection but still getting this error
/usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/spaceship/lib/spaceship/connect_api/token.rb:71:in'
/usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/spaceship/lib/spaceship/connect_api/token.rb:71:in '
initialize': [!] invalid curve name (OpenSSL::PKey::ECError) from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/spaceship/lib/spaceship/connect_api/token.rb:71:in
new' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/spaceship/lib/spaceship/connect_api/token.rb:71:increate' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/spaceship/lib/spaceship/connect_api/token.rb:49:in
from_json_file' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/spaceship/lib/spaceship/connect_api/token.rb:33:infrom' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/pilot/lib/pilot/manager.rb:23:in
login' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/pilot/lib/pilot/manager.rb:19:instart' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/pilot/lib/pilot/build_manager.rb:17:in
upload' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/pilot/lib/pilot/commands_generator.rb:67:inblock (2 levels) in run' from /usr/local/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in
call' from /usr/local/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:inrun' from /usr/local/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in
run_active_command' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:inrun!' from /usr/local/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in
run!' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/pilot/lib/pilot/commands_generator.rb:167:inrun' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/pilot/lib/pilot/commands_generator.rb:19:in
start' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/cli_tools_distributor.rb:115:intake_off' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/bin/fastlane:23:in
<top (required)>' from /usr/local/lib/ruby/gems/2.7.0/bin/fastlane:25:inload' from /usr/local/lib/ruby/gems/2.7.0/bin/fastlane:25:in
initialize': invalid curve name (OpenSSL::PKey::ECError) from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/spaceship/lib/spaceship/connect_api/token.rb:71:in
new' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/spaceship/lib/spaceship/connect_api/token.rb:71:increate' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/spaceship/lib/spaceship/connect_api/token.rb:49:in
from_json_file' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/spaceship/lib/spaceship/connect_api/token.rb:33:infrom' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/pilot/lib/pilot/manager.rb:23:in
login' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/pilot/lib/pilot/manager.rb:19:instart' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/pilot/lib/pilot/build_manager.rb:17:in
upload' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/pilot/lib/pilot/commands_generator.rb:67:inblock (2 levels) in run' from /usr/local/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in
call' from /usr/local/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:inrun' from /usr/local/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in
run_active_command' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:inrun!' from /usr/local/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in
run!' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/pilot/lib/pilot/commands_generator.rb:167:inrun' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/pilot/lib/pilot/commands_generator.rb:19:in
start' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/fastlane/lib/fastlane/cli_tools_distributor.rb:115:intake_off' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.209.1/bin/fastlane:23:in
<top (required)>' from /usr/local/lib/ruby/gems/2.7.0/bin/fastlane:25:inload' from /usr/local/lib/ruby/gems/2.7.0/bin/fastlane:25:in
[error]Error: The process '/usr/local/lib/ruby/gems/2.7.0/bin/fastlane' failed with exit code 1
When removing the \n characters and encoding as multiline string, getting error `initialize': [!] string contains null byte (ArgumentError)