V
V
Vanes Ri_Lax2019-09-19 15:17:02
SMS
Vanes Ri_Lax, 2019-09-19 15:17:02

How can I implement something like this?

Hello. There is a cryptopro CA server. It has an API that runs under IIS.
There is a client which works under control of OS Ubuntu.
I need to contact the server via https from the client. When I try to connect, I get an error that the client does not understand what kind of certificate the server sends.
How can I solve this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2018-04-27
@Artem0071

You have a good old feeling - "intermediaries do nothing and row money"
Banks complained to the Federal Antimonopoly Service about the increase in prices for SMS. Their customers can pay for the increase in tariffs.
Here is an excerpt from Chichvarkin's interview (it's about food retail, but here it's good for you to understand what needs to be done and what not) https://youtu.be/trnje_i0dQ0?t=8m57s
It is possible, but you need to think about the stability / stability of sending and the price of supporting this business, and it is unlikely that this will be profitable for you, since, unlike large intermediaries, you do not buy hundreds of thousands of SMS
sms.ru (very simple API for different languages)

D
Denis, 2019-09-21
@sidni

не хотите пойти путем доработки клиента?
зайти в index.php глянуть 7 строчку найти функцию file_get_contents и преобразовать со следующим кодом который отключает проверку

<?php
$arrContextOptions=array(
    "ssl"=>array(
        "verify_peer"=>false,
        "verify_peer_name"=>false,
    ),
);  

$response = file_get_contents("https://ra.local", false, stream_context_create($arrContextOptions));

echo $response; ?>

если есть pem файл сертификата то впринципе можно его подключить в опенссл или так же указать в функции file_get_contents

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question