function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AshwinAshwin 

two-way SSL

Hi all,


I am working in implementing 2 sided ssl in salesforce. I see that there are two options

 

[1]. self-signed

 

[2]. CA signed

 

For [1] when I use it in a webservice call its gives the following error:

 

"der input integer tag error"

 

For [2] I suppose it must be signed by someone before its used. Who does this signing?


Regards

Ashwin

 
Ispita_NavatarIspita_Navatar
If you could post the code snippet being used by you, that would give a greater insight into the problem faced by you and help me to provide a viable solution.


AshwinAshwin

Hi

 

I was stuck with other work :(. Here is the code

 

public class testSSL{
 public List<myservice.Items> myItems= new List<myservice.Items>();
public  List<myservice.Items> getmyItems(){
  myservice.myserviceImplPort stub =  new  myservice.myserviceImplPort ();
  stub.inputHttpHeaders_x = new Map<String, String>(); 
  stub.inputHttpHeaders_x.put('Authorization', 'Basic dGVzdDp0ZXN0'); 
  stub.clientCertName_x='Testenvironment';
  myItems=(List<myservice.Items>)stub.giveItems(7611243801);
 return myItems;
 }
}

 

Testenvironment is the name of the self-signed certificate and is installed on the server. I connect to an endpoint which is https and on port 8443.

 

I get this error:

 

IO Exception: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
 

mac_046mac_046

Hi

 

I am implementing one way SSL and I am getting the same error. Can you tell me how you resolved this issue.

 

thanks in advance

srikanth