benjcunningham / googlecalendar

Easily access and modify calendars, events, and UI settings via the Google Calendar API
Other
12 stars 6 forks source link

Travis decryption fails on Windows files #2

Closed benjcunningham closed 8 years ago

benjcunningham commented 8 years ago

From failing Travis-CI Build #1:

0.01s$ openssl aes-256-cbc -K $encrypted_93835e86f9b7_key -iv $encrypted_93835e86f9b7_iv -in tests/testthat/googlecalendar_token.rds.enc -out tests/testthat/googlecalendar_token.rds -d
bad decrypt
140463300056736:error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length:evp_enc.c:532:

The command "openssl aes-256-cbc -K $encrypted_93835e86f9b7_key -iv $encrypted_93835e86f9b7_iv -in tests/testthat/googlecalendar_token.rds.enc -out tests/testthat/googlecalendar_token.rds -d" failed and exited with 1 during .

From this issue:

I found the reason for this problem is that the Travis encryption generation variable is different from the Linux system.

So it looks like because I'm using the Ruby client on Windows, the decryption key in the Travis environment isn't matching up. Browsing through the thread, it looks like the present fix is just doing encryption on a different box.

benjcunningham commented 8 years ago

Fixed in c793651 by encrypting on a Linux box.

houssemzaier commented 8 years ago

so there is no hope with windows right?

benjcunningham commented 8 years ago

Unless I've overlooked something, no, it doesn't look like there's a good Windows fix yet. All the same, I rarely need to use encrypt-file for this project (only if the token falls off the end of the chain), so I haven't looked into other alternatives recently.