If you get this error when trying to import signed CSR :
"Unable to parse the certificate file due to an ASN.1 (Abstract Syntax Notation) encoding error.
The specified file does not contain a valid certificate. This situation can occur if the file was transferred incorrectly or saved with an incorrect Coded Character Set Identifier (CCSID). Make sure the file was transferred correctly and saved with the correct CCSID, then retry the request."
You can try to change CCSID on on imported certificate.
Work with Object Links
Directory . . . . : /home/path_to_imported_key
Type options, press Enter.
2=Edit 3=Copy 4=Remove 5=Display 7=Rename 8=Display attributes
11=Change current directory ...
Opt Object link Type Attribute Text
server-S1.der STMF
server-S1.pem STMF
server-S1X.csr STMF
145A.pem STMF
145B.pem STMF
More...
Parameters or command
===>
F3=Exit F4=Prompt F5=Refresh F9=Retrieve F12=Cancel F17=Position to
F22=Display entire field F23=More options
option 8=Display attributes
Display Attributes
Object . . . . . . : /home/path_to_imported_key/server-S1.pem
Type . . . . . . . . . . . . . . . . . : STMF
Owner . . . . . . . . . . . . . . . . : QSECOFR
System object is on . . . . . . . . . : Local
Auxiliary storage pool . . . . . . . . : 1
Object overflowed . . . . . . . . . : No
Coded character set ID . . . . . . . . : 1208
Hidden file . . . . . . . . . . . . . : No
PC system file . . . . . . . . . . . . : No
Read only . . . . . . . . . . . . . . : No
Need to archive (PC) . . . . . . . . . : Yes
Need to archive (System) . . . . . . . : Yes
More...
Press Enter to continue.
F3=Exit F12=Cancel F22=Display entire field
In this case Coded character set ID (CCSID) is 1208 but I need to change the value to 850.
I can do it with 13=Change attribute on file
Change Attribute (CHGATR)
Type choices, press Enter.
Object . . . . . . . . . . . . . > '/home/path_to_imported_key/server-S1.pem'
Attribute . . . . . . . . . . . *CSSID *READONLY, *HIDDEN...
New value . . . . . . . . . . . 850 1-65533, *YES, *NO, *RESET...
Directory subtree . . . . . . . *NONE *NONE, *ALL
Symbolic link . . . . . . . . . *NO *NO, *YES
Bottom
F3=Exit F4=Prompt F5=Refresh F12=Cancel F13=How to use this display
F24=More keys