I have a woking piece of java code (not written by me) that I need to translate into a NodeJS equivalent. It needs to apply the correct SSL certificates and make an https ca