How to install openssl to circleci build?


#1

I’m not sure how to go about installing openssl for my circleci build.

    docker:
     - image: docker:18.09.1-git
    steps:
     - checkout
     - run:
      name: Decrypt File
      command: |
        openssl aes-256-cbc -d -in encryptedfile -out decryptedfile -k $KEY

However, the above throws the error: ‘/bin/sh: openssl: not found’ .
I have been searching for a solution, but I haven’t found anything yet. I know that I need to install the dependency, but I’m unsure how, or what libraries to use for this within the yml file.

I would appreciate someone helping with this.


#2

Ideally this is all you’ll need to run beforehand:

apk add openssl

closed #3

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.