Coder Social home page Coder Social logo

Comments (8)

VeArnold avatar VeArnold commented on June 14, 2024 2

@thmatuza If you encrypt the contents of the key, and the environment variable is set as APP_STORE_CONNECT_PRIVATE_KEY, then I would imagine that it would work. In any case it is also important to make sure that you have copied the entire contents.

https://github.com/codemagic-ci-cd/cli-tools/blob/master/docs/app-store-connect/README.md#--private-keyprivate_key

What command exactly are you running and what output are you getting? Are you sure that your variable is correctly set?

from cli-tools.

thmatuza avatar thmatuza commented on June 14, 2024 1

This means I paste the contents of the key on the Paste the value of the variable here edit box, right?

I tried it again and it worked!
I guess I made a mistake last time.

Thank you for your help!

from cli-tools.

VeArnold avatar VeArnold commented on June 14, 2024

Hey Luic!

It's most likely that you've encrypted the file, not the content, and have not base64 decoded it.

If you share a build link, I'm happy to take a look, thanks.

from cli-tools.

priitlatt avatar priitlatt commented on June 14, 2024

No activity. Closing.

from cli-tools.

thmatuza avatar thmatuza commented on June 14, 2024

I have same problem.
In this line, it is checking if $APP_STORE_CONNECT_PRIVATE_KEY start with "-----BEGIN ".

return value.startswith('-----BEGIN ')

However, $APP_STORE_CONNECT_PRIVATE_KEY is supposed to be base64 encoded, so it shouldn't start with "-----BEGIN ", I think.

from cli-tools.

VeArnold avatar VeArnold commented on June 14, 2024

@thmatuza Hey - there are two options: you either base64 encode the key (in which case it is a file and you will have to decode it before using this tool) or you encrypt the contents of the key (in this case you do not need to - and should not - base64 encode the string). Thus effectively, it starts with -----BEGIN if done correctly.

from cli-tools.

thmatuza avatar thmatuza commented on June 14, 2024

you encrypt the contents of the key

This means I paste the contents of the key on the Paste the value of the variable here edit box, right?

If I use Choose a file or drag it here, it will base64 encode, so I need to base64 decode on the script, correct?

スクリーンショット 2021-04-11 0 37 00
](url)

from cli-tools.

thmatuza avatar thmatuza commented on June 14, 2024

This means I paste the contents of the key on the Paste the value of the variable here edit box, right?

I just tried but I guess no.

How can I encrypt the contents of the key?

from cli-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.