Skip to main content
Legend
Jun 14, 2022 11:43 AM UTC
Question

Attaching a certificate to a CFHTTP request

A part of a Google pay implementation we need to attach a certificate .PEM file and key to a CFHTTP request. It seems some envoronments like Node can do a HTTP POST and specifiy such files. Is this possible in CFML? Unless we do a CFHTTP POST with a specific .PEM file, the request is rejected. Help appreciated.

    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    BKBK
    Community Expert
    Community Expert
    Jun 17, 2022 3:53 PM UTC

    Hi @tribule ,

    What about using a cfhttpparam tag with type="file"? In any case, if you shared the Node.js code, we could try to translate it into CFML. 🙂

    Translate
    tribuleAuthor
    Legend
    Jun 14, 2022 11:55 AM UTC

    CLIENTCERT attribute of CHTTP seems the only way?

    Translate