Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Problem sa SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

[es] :: PHP :: Problem sa SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

[ Pregleda: 2406 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

adaxx
Beograd

Član broj: 214567
Poruke: 68
*.CyberCity.KladovoNet.Com.



Profil

icon Problem sa SSL3_GET_SERVER_CERTIFICATE:certificate verify failed02.11.2015. u 12:31 - pre 102 meseci
Pozdrav svima,

u pianju je root server, linux, i problem sa SSL3_GET_SERVER_CERTIFICATE:certificate verify failed , php skripta mi ne salje mail, koristim remote smtp server od gugla odnosno gmail-a, izbacuje mi sledecu gresku:

Code:
Error
stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Error
stream_socket_client(): Failed to enable crypto
Error
stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Unknown error)

Malo sam guglao nasao kao nesto ali neuspesno, da li neko zna kako da resim ovo, ili jednostavno da iskljucim tu verifikaciju sertifikata ?

Hvala
 
Odgovor na temu

Nemanja Avramović
Engineering Manager
MENU Technologies
Beograd, Srbija

Moderator
Član broj: 32202
Poruke: 4391
*.dynamic.sbb.rs.

Sajt: https://avramovic.info


+46 Profil

icon Re: Problem sa SSL3_GET_SERVER_CERTIFICATE:certificate verify failed03.11.2015. u 11:17 - pre 102 meseci
Šta koristiš za slanje mejlova? Ako je phpmailer, pogledaj ovo: https://github.com/PHPMailer/P...rtificate-verification-failure

Ako nije, to rešenje može da se primeni i na druge skripte.


Laravel Srbija.

[NE PRUŽAM PODRŠKU ZA PHP PREKO PRIVATNIH PORUKA!]
 
Odgovor na temu

adaxx
Beograd

Član broj: 214567
Poruke: 68
*.mbb.telenor.rs.



Profil

icon Re: Problem sa SSL3_GET_SERVER_CERTIFICATE:certificate verify failed03.11.2015. u 14:09 - pre 102 meseci
Problem je resen.

Koristim SWIFT, pokupio sam na jednom forumu, a ovo je resenje:



If you are using PHP 5.6, the error does occur because of the "SSL context options" used for the stream context in swiftmailer. IN PHP 5.6 verify_peer and verify_peer_name the default was set to TRUE, so PHP checks the SSL certificate.
It is currently not possible to disable it in swiftmailer using some options.

You could disable the SSL check by modifying the function "_establishSocketConnection" in StreamBuffer.php.
Add these lines before stream_socket_client command:
Code:
$options['ssl']['verify_peer'] = FALSE;
$options['ssl']['verify_peer_name'] = FALSE;


It would be great if these options could be set without hacking the code.
 
Odgovor na temu

[es] :: PHP :: Problem sa SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

[ Pregleda: 2406 | Odgovora: 2 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.