You need to sign in to do that
Don't have an account?
Dr. Thomas Miller
Continuous Integration Using Salesforce DX - Wire it all together on Windows
There seems to be an issue in this trailhead module when running it on Windows. Unencrypting the encrypted server key on the Travis server doesn't work.
This seems to be a known issue (https://github.com/travis-ci/travis-ci/issues/4746) and this alternative (https://docs.travis-ci.com/user/encrypting-files/#Using-OpenSSL) didn't work for me as well.
This seems to be a known issue (https://github.com/travis-ci/travis-ci/issues/4746) and this alternative (https://docs.travis-ci.com/user/encrypting-files/#Using-OpenSSL) didn't work for me as well.
Those issues should be highlighted in the Unit
1. Manually encrypt your key file with openSSL: While replacing the Key and the IV with your secret values
2. Update travis
3. Push your server.key.enc file into your repo
4. Wait for the build to succeed
For reference: https://stackoverflow.com/questions/16056135/how-to-use-openssl-to-encrypt-decrypt-files?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
You can find the "Windows complete package.exe installer" here: http://gnuwin32.sourceforge.net/packages/openssl.htm
The following link is almost the same as the instructions in the unit, but only on the heroku website: https://devcenter.heroku.com/articles/ssl-certificate-self
On Windows, replace openssl with "C:\OpenSSL instalation path\openssl.exe", then it will work in CMD.
so I followed this documentation about encryption keys in travis https://docs.travis-ci.com/user/encryption-keys#usage
I ran the following
- it is necessary to be logged in first in travis using :
However I now get the following error
So maybe the yaml line to decrypt the server.key.enc doesn't work - however I don't habe any errors when running :
If anyone has any idea on how to solve this ! Thanks !