You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to import distribution profile to match s3. The problem is that it crashes while trying to encrypt the p12. I exported this p12 from keychain with a blank password. Because originialy this p12 was protected by password and as far as I know match import doesn't work with password protected .p12.
Complete output when running fastlane, including the stack trace and command used
[17:52:36]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[2024-04-10 17:52:38.43]: Certificate (.cer) path:
/our/path/to.cer
[2024-04-10 17:52:40.76]: Private key (.p12) path:
/our/path/to.p12
[2024-04-10 17:52:52.55]: Provisioning profile (.mobileprovision or .provisionprofile) path or leave empty to skip this file:
DEBUG [2024-04-10 17:52:54.43]: Successfully downloaded files from S3 to /var/folders/21/wm4p7bb92kv24_zkfg4pwcy40000gn/T/d20240410-36810-1pa9o7j
WARN [2024-04-10 17:52:54.43]: To not be asked about this value, you can specify it using 'git_url'
[2024-04-10 17:52:54.43]: URL to the git repo containing all the certificates:
INFO [2024-04-10 17:52:55.71]: 🔓 Successfully decrypted certificates repo
INFO [2024-04-10 17:52:55.72]: Repo is at: '/var/folders/21/wm4p7bb92kv24_zkfg4pwcy40000gn/T/d20240410-36810-1pa9o7j'
ERROR [2024-04-10 17:52:55.77]: couldn't set additional authenticated data
Looking for related GitHub issues on fastlane/fastlane...
...
Found no similar issues. To create a new issue, please visit: https://github.com/fastlane/fastlane/issues/new
Run fastlane env to append the fastlane environment to your issue
/Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/fastlane_core/lib/fastlane_core/ui/interface.rb:129:in crash!': [!] Error encrypting '/var/folders/21/wm4p7bb92kv24_zkfg4pwcy40000gn/T/d20240410-36810-1pa9o7j/path/certs/distribution/to.p12' (FastlaneCore::Interface::FastlaneCrash) from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in method_missing'
from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:120:in rescue in encrypt_specific_file' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:112:in encrypt_specific_file'
from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:36:in block in encrypt_files' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:78:in block in iterate'
from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:76:in each' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:76:in iterate'
from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:34:in encrypt_files' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/importer.rb:122:in import_cert'
from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/commands_generator.rb:144:in block (2 levels) in run' from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/command.rb:187:in call'
from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/command.rb:157:in run' from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in run_active_command'
from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in run!' from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in run!'
from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/commands_generator.rb:186:in run' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/commands_generator.rb:26:in start'
from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/fastlane/lib/fastlane/cli_tools_distributor.rb:115:in take_off' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/bin/fastlane:23:in <top (required)>'
from /usr/local/bin/fastlane:23:in load' from /usr/local/bin/fastlane:23:in
'
/Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/encryption.rb:86:in auth_data=': couldn't set additional authenticated data (OpenSSL::Cipher::CipherError) from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/encryption.rb:86:in keyivgen'
from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/encryption.rb:55:in encrypt' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/encryption.rb:98:in encrypt'
from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/encryption.rb:141:in encrypt' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:115:in encrypt_specific_file'
from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:36:in block in encrypt_files' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:78:in block in iterate'
from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:76:in each' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:76:in iterate'
from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:34:in encrypt_files' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/importer.rb:122:in import_cert'
from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/commands_generator.rb:144:in block (2 levels) in run' from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/command.rb:187:in call'
from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/command.rb:157:in run' from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in run_active_command'
from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in run!' from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in run!'
from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/commands_generator.rb:186:in run' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/commands_generator.rb:26:in start'
from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/fastlane/lib/fastlane/cli_tools_distributor.rb:115:in take_off' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/bin/fastlane:23:in <top (required)>'
from /usr/local/bin/fastlane:23:in load' from /usr/local/bin/fastlane:23:in '
New Issue Checklist
Issue Description
I am trying to import distribution profile to match s3. The problem is that it crashes while trying to encrypt the p12. I exported this p12 from keychain with a blank password. Because originialy this p12 was protected by password and as far as I know match import doesn't work with password protected .p12.
Command executed
fastlane match import
--storage-mode s3
--s3_bucket
--type appstore
--s3_region
--s3_object_prefix
--s3_secret_access_key
--skip_certificate_matching true
--s3_access_key
--team_id
--readonly true
--verbose
Complete output when running fastlane, including the stack trace and command used
[17:52:36]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[2024-04-10 17:52:38.43]: Certificate (.cer) path:
/our/path/to.cer
[2024-04-10 17:52:40.76]: Private key (.p12) path:
/our/path/to.p12
[2024-04-10 17:52:52.55]: Provisioning profile (.mobileprovision or .provisionprofile) path or leave empty to skip this file:
DEBUG [2024-04-10 17:52:54.43]: Successfully downloaded files from S3 to /var/folders/21/wm4p7bb92kv24_zkfg4pwcy40000gn/T/d20240410-36810-1pa9o7j
WARN [2024-04-10 17:52:54.43]: To not be asked about this value, you can specify it using 'git_url'
[2024-04-10 17:52:54.43]: URL to the git repo containing all the certificates:
INFO [2024-04-10 17:52:55.71]: 🔓 Successfully decrypted certificates repo
INFO [2024-04-10 17:52:55.72]: Repo is at: '/var/folders/21/wm4p7bb92kv24_zkfg4pwcy40000gn/T/d20240410-36810-1pa9o7j'
ERROR [2024-04-10 17:52:55.77]: couldn't set additional authenticated data
Looking for related GitHub issues on fastlane/fastlane...
'...
Found no similar issues. To create a new issue, please visit:
https://github.com/fastlane/fastlane/issues/new
Run
fastlane env
to append the fastlane environment to your issue/Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/fastlane_core/lib/fastlane_core/ui/interface.rb:129:in
crash!': [!] Error encrypting '/var/folders/21/wm4p7bb92kv24_zkfg4pwcy40000gn/T/d20240410-36810-1pa9o7j/path/certs/distribution/to.p12' (FastlaneCore::Interface::FastlaneCrash) from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in
method_missing'from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:120:in
rescue in encrypt_specific_file' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:112:in
encrypt_specific_file'from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:36:in
block in encrypt_files' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:78:in
block in iterate'from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:76:in
each' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:76:in
iterate'from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:34:in
encrypt_files' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/importer.rb:122:in
import_cert'from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/commands_generator.rb:144:in
block (2 levels) in run' from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/command.rb:187:in
call'from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/command.rb:157:in
run' from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in
run_active_command'from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in
run!' from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in
run!'from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/commands_generator.rb:186:in
run' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/commands_generator.rb:26:in
start'from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/fastlane/lib/fastlane/cli_tools_distributor.rb:115:in
take_off' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/bin/fastlane:23:in
<top (required)>'from /usr/local/bin/fastlane:23:in
load' from /usr/local/bin/fastlane:23:in
/Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/encryption.rb:86:in
auth_data=': couldn't set additional authenticated data (OpenSSL::Cipher::CipherError) from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/encryption.rb:86:in
keyivgen'from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/encryption.rb:55:in
encrypt' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/encryption.rb:98:in
encrypt'from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/encryption.rb:141:in
encrypt' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:115:in
encrypt_specific_file'from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:36:in
block in encrypt_files' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:78:in
block in iterate'from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:76:in
each' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:76:in
iterate'from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/encryption/openssl.rb:34:in
encrypt_files' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/importer.rb:122:in
import_cert'from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/commands_generator.rb:144:in
block (2 levels) in run' from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/command.rb:187:in
call'from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/command.rb:157:in
run' from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in
run_active_command'from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in
run!' from /Library/Ruby/Gems/2.6.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in
run!'from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/commands_generator.rb:186:in
run' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/match/lib/match/commands_generator.rb:26:in
start'from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/fastlane/lib/fastlane/cli_tools_distributor.rb:115:in
take_off' from /Library/Ruby/Gems/2.6.0/gems/fastlane-2.220.0/bin/fastlane:23:in
<top (required)>'from /usr/local/bin/fastlane:23:in
load' from /usr/local/bin/fastlane:23:in
'Environment
Stack
System Locale
fastlane files:
No Fastfile found
No Appfile found
fastlane gems
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
The text was updated successfully, but these errors were encountered: