It is caused by different private key format produced by certificate request created by openssl >= 1.x.x New private key format is incompatible with ssl-proxies-2.0.6.jar.
It is possible to convert new key format into old format using (at least on SL6)
import java.io.IOException;
import org.globus.gsi.CredentialException;
public class TestSSL {
public static void main(String[] args) throws CredentialException, IOException {
System.out.println("Start");
new org.globus.gsi.X509Credential("mycert.pem", "mykey.pem.old");
System.out.println("Old key was read OK");
new org.globus.gsi.X509Credential("mycert.pem", "mykey.pem.new");
System.out.println("We'll not get here with current jglobus version 2.0.6");
}
}
When I create certificate request with openssl >= 1.x.x (e.g. on SL6)
where content of my.cfg is following
than I'm not able to load private key using function:
It is caused by different private key format produced by certificate request created by openssl >= 1.x.x New private key format is incompatible with ssl-proxies-2.0.6.jar.
It is possible to convert new key format into old format using (at least on SL6)
and old format to new format using
and than one can test this issue e.g. by