Announcement

Collapse
No announcement yet.

MvCALL - Both Cert & Key

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    MvCALL - Both Cert & Key

    How does one include both the cert AND key when using MvCall? In python it's cert=(CERT,KEY). In curl --cert cert.crt --key key.crt

    Hoping it's possible since it's a requirement.

    Thanks,
    -mike

    #2
    If I am understanding the context, each will be passed as a header or:

    Miva Script Version [ 5.38 ]: Search.

    The CERT attributes might help. I don't recall working with these personally.
    There doesn't appear to be an example either.

    Scott

    Need to offer Shipping Insurance?
    Interactive Design Solutions https://www.myids.net
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    Competitive Rates, Custom Modules and Integrations, Store Integration
    AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
    My T-shirt Collection is mostly MivaCon T-shirts!!

    Comment


      #3
      I believe you would just put your key, then cert, in a PEM-format file and refer to it with CERTFILE, CERTTYPE and optionally CERTPASS per http://www.mivascript.com/item/mivas...gs/MvCALL.html
      David Hubbard
      CIO
      Miva
      [email protected]
      http://www.miva.com

      Comment


        #4
        Hey Scott,

        That's the confussion. We do use the CERTFILE but it only allows one. Because the documentation says "... or set of certificates" we thought it might handle more than one. But we've had no luck. And my understanding is that it's not really "passed" in the header; rather it's used without sending to get a successful handshake.

        -mike

        Comment


          #5
          Maybe Mr. Carver can supply an example of more than one?

          Scott
          Need to offer Shipping Insurance?
          Interactive Design Solutions https://www.myids.net
          MivaMerchant Business Partner | Certified MivaMerchant Web Developer
          Competitive Rates, Custom Modules and Integrations, Store Integration
          AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
          My T-shirt Collection is mostly MivaCon T-shirts!!

          Comment


            #6
            David - that worked! We just stacked the key and cert into one "combined.pem" file and referenced with CERTFILE.

            Scott - thanks for jumping in! Appreciated.

            -mike

            Comment


              #7
              Mike,

              Cool. I anticipate I'd need to do this some day. How did you make the combined pem file?

              Scott
              Need to offer Shipping Insurance?
              Interactive Design Solutions https://www.myids.net
              MivaMerchant Business Partner | Certified MivaMerchant Web Developer
              Competitive Rates, Custom Modules and Integrations, Store Integration
              AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
              My T-shirt Collection is mostly MivaCon T-shirts!!

              Comment


                #8
                Scott,

                We just opened the key file and renamed it combined.pem. Then opened up the cert file and copied its content into the combined pem file below the key.
                -----BEGIN PRIVATE KEY-----
                MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQ DAENt2gWEAdVhE
                fXLQrZAumflAwDwOzKldVsFMIREQYrih85Uk49G+eh8o9QG0F9 D6gvNNViZRc6aB

                ETC...

                -----END PRIVATE KEY-----
                -----BEGIN CERTIFICATE-----
                MIIG6zCCBdOgAwIBAgIRALMHAERHIowuB20GYjkojC0wDQYJKo ZIhvcNAQELBQAw
                gZUxCzAJBgNVBAYTAkdCMRswGQYDVQQIExJHcmVhdGVyIE1hbm NoZXN0ZXIxEDAO
                BgNVBAcTB1NhbGZvcmQxGDAWBgNVBAoTD1NlY3RpZ28gTGltaX RlZDE9MDsGA1UE
                AxM0U2VjdGlnbyBSU0EgT3JnYW5pemF0aW9uIFZhbGlkYXRpb2 4gU2VjdXJlIFNl
                cnZlciBDQTAeFw0yMzAzMDIwMDAwMDBaFw0yNDAzMjkyMzU5NT laMFkxCzAJBgNV

                ETC...
                -----END CERTIFICATE-----

                It worked great.
                -mike

                Comment


                  #9
                  Thanks, Mike.
                  This makes sense now.

                  Scott
                  Need to offer Shipping Insurance?
                  Interactive Design Solutions https://www.myids.net
                  MivaMerchant Business Partner | Certified MivaMerchant Web Developer
                  Competitive Rates, Custom Modules and Integrations, Store Integration
                  AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
                  My T-shirt Collection is mostly MivaCon T-shirts!!

                  Comment

                  Working...
                  X