Client certificates in Jade http and web services
Posted: Thu Jun 28, 2018 11:58 am
We are attempting to implement an interface with the Portuguese tax authority AT that uses client certificates as well as server certificates to verify the identify of the sending software. The issue is that there does not seem to be any way of specifying the client certificate in either a jade web service call or jade http call.
It looks like the underlying windows winhttp does support this and perhaps it is just a matter of knowing which headers to set in the http request, from trawling the web it looks like the .net variables are WINHTTP_OPTION_CLIENT_CERT_CONTEXT to specify the certificate in the trust store and possibly another to turn this feature on/off.
Following are links to the .net specification that also uses winhttp.
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
https://msdn.microsoft.com/en-us/librar ... RT_CONTEXT
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
I am getting a 12044 error that a client certificate is required
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
Many hours have been spent trying to get this to work so any help would be very much appreciated..
Cheers Callum (Abel Software)
It looks like the underlying windows winhttp does support this and perhaps it is just a matter of knowing which headers to set in the http request, from trawling the web it looks like the .net variables are WINHTTP_OPTION_CLIENT_CERT_CONTEXT to specify the certificate in the trust store and possibly another to turn this feature on/off.
Following are links to the .net specification that also uses winhttp.
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
https://msdn.microsoft.com/en-us/librar ... RT_CONTEXT
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
I am getting a 12044 error that a client certificate is required
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
Many hours have been spent trying to get this to work so any help would be very much appreciated..
Cheers Callum (Abel Software)