Search code examples
bashgitgithubtravis-cissh-keygen

Error authenticating Github using Travis CI


I am trying to automate pushing my javadoc for my Minecraft Mod using Travis CI. Travis is building, and uploading to Bintray, as well, but I thought it would be easy to add in the javadoc as well. This is my script to upload to the repository, and I was using this tutorial to make it work. To generate the key, I used this command:

ssh-keygen -t rsa -b 4096 -C "mttprvstanddad@gmail.com"

I then copied the key from ~/.ssh/id_rsa.pub into my deploy_key file. I also copied it as a deploy key on the repository. Once I did that, I ran this command:

travis encrypt-file deploy_key

The error I get looks a little something like this:

bad decrypt
139975363151520:error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length:evp_enc.c:532:

All of the other files and information should be fairly easy to find, it is at this repository.


Solution

  • Thanks to hansaplast for telling me that the issue was related to being one Windows. I setup a Linux virtual machine, and encrypted it there. Now the build is working.