Answer the question
In order to leave comments, you need to log in
How to integrate GOST2012 into Nginx?
Good afternoon.
I have a Centos 8 server that should process data from another X server where GOST 2012 cryptography is used.
My Centos is configured like this: I installed OpenSSL with GOST2012 support, I compiled Curl with GOST2012 support. When I request another X server with GOST certificates, I get a response normally.
I need to have an Nginx server on my Centos with only one index.php that, when requested, will take data from the X server and show it to the user.
I'm stuck at the web server stage, I can't integrate GOST into Nginx, who had experience? can you share your experience?
Thanks in advance to all
php code itself
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://ссылка_сервера_X");
curl_setopt($ch, CURLOPT_HTTPGET, true);
// Receive server response ...
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$server_output = curl_exec($ch);
curl_close ($ch);
//$data = $server_output;
//echo $data;
// Further processing ...
if ($server_output == true) {
$response = $server_output;
} else {
$response = "no data response";
}
echo $response;
Answer the question
In order to leave comments, you need to log in
Why do you need to integrate the guest into nginx? Your php clings to the server where the guest certificate is. nginx has nothing to do with it, from the word at all.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question