Keystore File Invalid Format (z/OS Unix System Services)

Viewed 144

I am using a z/OS java jar which requires a keystore and truststore file.

I have FTP'd all of the files to the z/OS Unix directory(Mainframe).

When executing the jar, I receive an "invalid keystore file format" error. When I use the keytool on my local machine on the keystore file, the command is successful. When using the keytool command on the remote (zOS Unix), I am getting the format error. The files are being transmitted in binary format.

Is there a particular way that I should be transmitting the file to MF Unix?

1 Answers

There are three primary way I use to transfer files to z/OS USS depending on whether I want conversion or not (from utf-8 to ibm-1047 for instance).

With conversion:

  • scp works and will translate the files characters while transferring. Note: this is an IBM behaviour that you do not normally see when transferring from distributed system to distributed system. It's really annoying.

  • ftp with ascii mode

Without Conversion:

  • ftp with transfer mode set to binary
  • sftp

Choose the option that makes the most sense based on the client in your environment.

Related