MapGuide accessing SSL server

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

MapGuide accessing SSL server

DBowen
I'm attempting to set up MapGuide to connect with an API that requires an SSL
certificate. While I have the certificate, I'm not sure how to config
MapGuide to utilize it when it connects with the API. I've attempted to
follow online resources, however they seem to focus on setting up MapGuide
with SSL, which is opposite of what I'm trying to do.

Thanks,
David



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users
Reply | Threaded
Open this post in threaded view
|

Re: MapGuide accessing SSL server

DBowen
I was able to resolve the issue. The full path to the certificate had to be set in the HTTP_Reqeust2 configuration within class.RESTClient.php:

public

    function createRequest( $url, $method, $arr = null ) {

        $this->curr_url = $url;

        $this->req = new HTTP_Request2( $url, HTTP_Request2::METHOD_GET );

                             $this->req->setConfig(array(

                                           'ssl_cafile' => “path_to_cert_file”

                                           ));

 

        if ( $this->user_name != "" && $this->password != "" ) {

            $this->req->setAuth( $this->user_name, $this->password, "basic" );

        }

    }


On Fri, May 29, 2020 at 2:19 PM DBowen <[hidden email]> wrote:
I'm attempting to set up MapGuide to connect with an API that requires an SSL
certificate. While I have the certificate, I'm not sure how to config
MapGuide to utilize it when it connects with the API. I've attempted to
follow online resources, however they seem to focus on setting up MapGuide
with SSL, which is opposite of what I'm trying to do.

Thanks,
David



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users

_______________________________________________
mapguide-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/mapguide-users