M
M
mediadev2018-04-02 15:11:43
VPN
mediadev, 2018-04-02 15:11:43

PHP laravel connect to local network via VPN and work with 1C as in local network via api... HOW?

How to implement a VPN connection to connect to the local network from the site. To work with the 1C server not via the WEB.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
awesomer, 2018-04-02
@awesomer

No need to interfere with Lavarel and VPN - this is a separate software.
The most you can do from Lavarel is to run an external command that establishes a VPN connection if you do not have a permanent one.
That is, you need to administer (or agree with the admin who will do this) - set up a connection to the 1C server via VPN.
Once you have this connection, working from Lavarel is no different from any regular network connection.

M
mediadev, 2018-04-03
@mediadev

What do you say to that???
<?php
curl_setopt($ch, CURLOPT_VERBOSE, '1');
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, '2');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, '1');
curl_setopt($ch, CURLOPT_CAINFO, getcwd().'/cert/ca.crt');
curl_setopt($ch, CURLOPT_SSLCERT, getcwd().'/cert/mycert.pem');
curl_setopt($ch, CURLOPT_SSLCERTPASSWD, 'password');
?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question