Help says that the DEFAULT is 0 which means to ignore all certificate errors. Does that mean it does not check the certificate at all by default?
how do you have these clients validate the client cert? Do you set the value to null?
I think this was added in PB 2021
-------------------------------
IgnoreServerCertificate - - Objects and Controls (appeon.com)
IgnoreServerCertificate
Applies to
HTTPClient, RestClient, TokenRequest, OAuthRequest
Description
When the IgnoreServerCertificate property is set with a value, the program will ignore certain type(s) of server certificate error when sending a request. The value can be one or a combination of one or more of the following values. The default value is 0.
-
0 -- ignores all certificate errors
-
1 -- ignores unknown certificate authentication (CA)
-
2 -- ignores certificates whose date is invalid
-
4 -- ignores certificates whose common name (CN) is invalid
-
8 -- ignores certificates with incorrect usage
There’s no option to not ignore it right now. I will record it as a new enhancement/requirement request and will transfer it to our product team for consideration.
You can set it to ignore one type so it will validate all other types of certificates errors. If IgnoreServerCertificate is set to validate the server certificate, and if the validation fails, an error code will be returned by HTTPClient sendRequest function, please refer to the article below for details.
https://docs.appeon.com/pb2021/powerscript_reference/sendRequest_func.html
Regards,Kai
1. powerbuilder ignores any and all certificate errors.
2. If you want it to do any validation at all on a certificate, we have to tell it to ignore a particular error?
What we need is the ability to specify what should happen if there is a cert error. One of which is to error if there is anything at all wrong with the certificate, which should be the default.
2 Yes.
There’s no option to NOT ignore any error right now. I will record it as a new enhancement/requirement request and will transfer it to our product team for consideration.