I would like encode my .keystore file for use in Gitlab-ci. So, for encode sur base64, i run this command :

openssl base64 -A -in myFile.keystore

And for decode :

openssl base64 -d <<< $KEY > myFile.keystore

But if i use my file, i've this error : Invalid keystore format

I've compare my initial file with new decode file by running md5sum oldFile.keystore myFile.keystore, but files is same :/

Anyone have an idea ?

Thank you community !

1

1 Answer

I tried the same and also had some issues when using openssl to perform the base64 encoding.

I believe this to be caused by the trailing % characters that openssl includes in the decoded base64 string, using something else to encode the keystore worked for me. For example, you can do

cat myKeystore.keystore | base64 

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy