Skip to main content
Open

Extend the HttpCaller with an option to create a secure connection with a certif

Related products:Transformers
danilo_fme
  • danilo_fme
    danilo_fme

lifalin2016
Contributor

***Note from Migration:***

Original Title was: Extend the HttpCaller with an option to create a secure connection with a certificate


Please add an option to enable HttpCaller to create a secure SSL connection using a custom X.509 certificate.

Preferably enable providing the certificate in multiple format formats, e.g. both certificate/key separated formats and the joined format of pkcs12.

I can provide sample code that works in a PythonCaller (Python 3.7+).

6 replies

nielsgerrits
VIP
Forum|alt.badge.img+54
Note from Safe: We had to turn off the formatting in this comment due to the community migration.

@lifalin2016 could you share the PythonCaller code? Would be very grateful to have a working example instead of working from scratch. Maybe via email if you don't like to have it on the net. For email see profile, firstname.lastname@companyname.com.


lifalin2016
Contributor
Forum|alt.badge.img+29
  • Author
  • Contributor
  • July 2, 2020

I basically just utilized the socket and ssl modules, which dictated a full certificate split into a certificate and key files.

Here's a trimmed down version of my test code, which got quite large, as I was testing multiple things:

 

sample-script-connection.py

lifalin2016
Contributor
Forum|alt.badge.img+29
  • Author
  • Contributor
  • July 2, 2020

I forgot to add, that I used OpenSSL Console to split the full certificate (PKCS12) into the two files.

The commands to split are as follows:

pkcs12 -in "input.p12" -nokeys -out "output.cer"

 

pkcs12 -in "input.p12" -out "output.key"

 

 


nielsgerrits
VIP
Forum|alt.badge.img+54

Thank you!


oliver.morris
Contributor
Forum|alt.badge.img+12

@lifalin2016 if you are able to share your python code that would be very helpful, I am stuck at the moment and could really do with some guidance. thank you


oliver.morris
Contributor
Forum|alt.badge.img+12

This is how postman enables it.

'>


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings