I am getting following message while sending Push Notifications from my php code:
#
Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages: error:14094414:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate revoked in /opt/lampp/htdocs/world-vision/admin/iPhonePush/admin.php on line 225
Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in /opt/lampp/htdocs/world-vision/admin/iPhonePush/admin.php on line 225
Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /opt/lampp/htdocs/world-vision/admin/iPhonePush/admin.php on line 225
Warning: fwrite(): supplied argument is not a valid stream resource in /opt/lampp/htdocs/world-vision/admin/iPhonePush/admin.php on line 243
Warning: fclose(): supplied argument is not a valid stream resource in /opt/lampp/htdocs/world-vision/admin/iPhonePush/admin.php on line 245
Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages: error:14094414:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate revoked in /opt/lampp/htdocs/world-vision/admin/iPhonePush/admin.php on line 225
Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in /opt/lampp/htdocs/world-vision/admin/iPhonePush/admin.php on line 225
Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /opt/lampp/htdocs/world-vision/admin/iPhonePush/admin.php on line 225
Warning: fwrite(): supplied argument is not a valid stream resource in /opt/lampp/htdocs/world-vision/admin/iPhonePush/admin.php on line 243
Warning: fclose(): supplied argument is not a valid stream resource in /opt/lampp/htdocs/world-vision/admin/iPhonePush/admin.php on line 245
Warning: stream_socket_client() [function.stream-socket-client]: SSL operation failed with code 1. OpenSSL Error messages: error:14094414:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate revoked in /opt/lampp/htdocs/world-vision/admin/iPhonePush/admin.php on line 225
Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in /opt/lampp/htdocs/world-vision/admin/iPhonePush/admin.php on line 225
Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Unknown error) in /opt/lampp/htdocs/world-vision/admin/iPhonePush/admin.php on line 225
Warning: fwrite(): supplied argument is not a valid stream resource in /opt/lampp/htdocs/world-vision/admin/iPhonePush/admin.php on line 243
Warning: fclose(): supplied argument is not a valid stream resource in /opt/lampp/htdocs/world-vision/admin/iPhonePush/admin.php on line 245
Related
i tried to download from youtube with yt-dlp, and got an error:
i've made sure i have yt-dlp installed and i also removed and installed it again ,
sudo pacman -Qi yt-dlp
Version : 2021.12.27-1
and im using windscribe vpn too,
the error is:
yt-dlp -F https://www.youtube.com/watch\?v=-bt_y4Loofg ✔
[youtube] -bt_y4Loofg: Downloading webpage
WARNING: [youtube] Unable to download webpage: <urlopen error timed out>
[youtube] -bt_y4Loofg: Downloading android player API JSON
WARNING: [youtube] <urlopen error timed out>. Retrying ...
[youtube] -bt_y4Loofg: Downloading android player API JSON (retry #1)
WARNING: [youtube] <urlopen error timed out>. Retrying ...
[youtube] -bt_y4Loofg: Downloading android player API JSON (retry #2)
WARNING: [youtube] <urlopen error timed out>. Retrying ...
[youtube] -bt_y4Loofg: Downloading android player API JSON (retry #3)
[youtube] -bt_y4Loofg: Downloading iframe API JS
WARNING: [youtube] Unable to download webpage: <urlopen error timed out>
[youtube] -bt_y4Loofg: Downloading web player API JSON
WARNING: [youtube] <urlopen error timed out>. Retrying ...
[youtube] -bt_y4Loofg: Downloading web player API JSON (retry #1)
WARNING: [youtube] <urlopen error timed out>. Retrying ...
[youtube] -bt_y4Loofg: Downloading web player API JSON (retry #2)
WARNING: [youtube] <urlopen error timed out>. Retrying ...
[youtube] -bt_y4Loofg: Downloading web player API JSON (retry #3)
WARNING: [youtube] Unable to download API page: <urlopen error timed out> (caused by URLError(TimeoutError('timed out')))
ERROR: [youtube] -bt_y4Loofg: Unable to download API page: <urlopen error timed out> (caused by URLError(TimeoutError('timed out'))) (caused by URLError(TimeoutError('timed out')))
and i also tried with vpn off, and with youtube-dl too and it still didn't work,
here's the youtube-dl error:
youtube-dl -F https://www.youtube.com/watch\?v=-bt_y4Loofg 1 ✘ 31s
[youtube] -bt_y4Loofg: Downloading webpage
WARNING: Unable to download webpage: <urlopen error [Errno 104] Connection reset by peer>
[youtube] -bt_y4Loofg: Downloading API JSON
ERROR: Unable to download API page: <urlopen error [Errno 104] Connection reset by peer> (caused by URLError(ConnectionResetError(104, 'Connection reset by peer')))
i tried both with the url between single quotations and dbl-quotations and also without quotations but special characters scaped, so url doesn't seem to be the problem
and neither yt-dlp nor youtube-dl are working, so that's something to note,
and when i debug it with -v :
yt-dlp -v https://www.youtube.com/watch\?v=-bt_y4Loofg 1 ✘
[debug] Command-line config: ['-v', 'https://www.youtube.com/watch?v=-bt_y4Loofg']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2021.12.27 [6223f67a8]
[debug] Python version 3.10.1 (CPython 64bit) - Linux-5.15.16-1-MANJARO-x86_64-with-glibc2.33
[debug] exe versions: ffmpeg 4.4.1 (setts), ffprobe 4.4.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome, secretstorage, mutagen, sqlite, websockets
[debug] Proxy map: {}
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=-bt_y4Loofg
[youtube] -bt_y4Loofg: Downloading webpage
WARNING: [youtube] Unable to download webpage: <urlopen error [Errno 104] Connection reset by peer>
[youtube] -bt_y4Loofg: Downloading android player API JSON
WARNING: [youtube] <urlopen error [Errno 104] Connection reset by peer>. Retrying ...
[youtube] -bt_y4Loofg: Downloading android player API JSON (retry #1)
WARNING: [youtube] <urlopen error [Errno 104] Connection reset by peer>. Retrying ...
[youtube] -bt_y4Loofg: Downloading android player API JSON (retry #2)
Warning: require(/storage/ssd1/943/12963943/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in /storage/ssd1/943/12963943/public_html/vendor/composer/autoload_real.php on line 66
Warning: require(/storage/ssd1/943/12963943/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in /storage/ssd1/943/12963943/public_html/vendor/composer/autoload_real.php on line 66
Fatal error: require(): Failed opening required '/storage/ssd1/943/12963943/public_html/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php' (include_path='.:/usr/share/pear:/usr/share/php') in /storage/ssd1/943/12963943/public_html/vendor/composer/autoload_real.php on line 66
3 out of 4 connections fails while trying to validate the receipt using apple sandbox URL.Is anyone experiencing the same issue?
https://sandbox.itunes.apple.com/verifyReceipt
Connection 3: encountered error(3:-9816)
2020-04-03 20:30:18.834825+0530 App[6312:266644] Task <AD18FA15-D34F-4428-BD0A-107AAAAAF555>.<1> HTTP load failed, 0/0 bytes (error code: -1200 [3:-9816])
the upload task returned an error: Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={_kCFStreamErrorCodeKey=-9816, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, NSUnderlyingError=0x600000cac660 {Error Domain=kCFErrorDomainCFNetwork Code=-1200 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, _kCFNetworkCFStreamSSLErrorOriginalValue=-9816, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9816}}, NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=https://sandbox.itunes.apple.com/verifyReceipt, NSErrorFailingURLStringKey=https://sandbox.itunes.apple.com/verifyReceipt, _kCFStreamErrorDomainKey=3}
I have developed a biometric authencation system on java8u144 and active directory password reset using ldaps on java8u191. When I tried to combine them...
Forst biometric encryption popped error for invalid key size. I updated JCE UNLIMITED .THEN BIOMETRIC STARTED WORKING BUT ldaps connection issues remain for ssl handshake pkix path building failed
I am not able to fix it
Pls help me out
I am running out of time
i am getting following exception
%% Invalidated: [Session-1, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384]
http-nio-8084-exec-2, SEND TLSv1.2 ALERT: fatal, description = certificate_unknown
http-nio-8084-exec-2, WRITE: TLSv1.2 Alert, length = 2
[Raw write]: length = 7
0000: 15 03 03 00 02 02 2E .......
http-nio-8084-exec-2, called closeSocket()
http-nio-8084-exec-2, handling exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
on java8u144 without jce code was working but biometric needed unlimited strength. i tried java8u144 java8u162 java8u191
currently using java8u162.
above exception is coming only after JCE upgrade.
kindly guide how to get certificate chain for this.
NOTE LDP.exe is working on client sucessfully.
& OPENSSL : unable to verify first cerificate
I am trying to program a simple FTPS server based on EventMachine.
Control socket works properly. When using data socket for data transfer, it seems that everything works well (TLS handshake completes successfully and data is received), but then I get an error message. Here is what I get in Filezilla:
Command: LIST
Response: 150 Opening ASCII mode data connection for file list
Trace: CFtpControlSocket::TransferParseResponse()
Trace: code = 1
Trace: state = 4
Trace: CFtpControlSocket::SendNextCommand()
Trace: CFtpControlSocket::TransferSend()
Trace: state = 5
Trace: CTransferSocket::OnConnect
Trace: CTlsSocket::Handshake()
Trace: gnutls_session_get_data on primary socket failed: -51
Trace: CTlsSocket::ContinueHandshake()
Trace: CTlsSocket::OnSend()
Trace: CTlsSocket::OnSend()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::ContinueHandshake()
Trace: CTlsSocket::OnRead()
Trace: CTlsSocket::ContinueHandshake()
Trace: Handshake successful
Trace: Cipher: AES-256-CBC, MAC: SHA1
Trace: CTlsSocket::OnRead()
Trace: CTransferSocket::OnConnect
Trace: CTransferSocket::OnReceive(), m_transferMode=0
Listing: -rwxrwxrwx 1 owner group 1011 Dec 12 23:05 a.tmp
Trace: CTlsSocket::Failure(-9, 0)
Error: GnuTLS error -9: A TLS packet with unexpected length was received.
Status: Server did not properly shut down TLS connection
Error: Could not read from transfer socket: ECONNABORTED - Connection aborted
Trace: CTransferSocket::TransferEnd(3)
Trace: CFtpControlSocket::OnReceive()
Response: 226 Closing data connection, sent 70 bytes
Trace: CFtpControlSocket::TransferParseResponse()
Trace: code = 2
Trace: state = 5
Trace: CFtpControlSocket::SendNextCommand()
Trace: CFtpControlSocket::TransferSend()
Trace: state = 8
Trace: CFtpControlSocket::TransferEnd()
Trace: CFtpControlSocket::ResetOperation(2)
Trace: CControlSocket::ResetOperation(2)
Trace: CFtpControlSocket::ParseSubcommandResult(2)
Trace: CFtpControlSocket::ListSubcommandResult()
Trace: state = 3
Trace: CFtpControlSocket::ResetOperation(2)
Trace: CControlSocket::ResetOperation(2)
Error: Failed to retrieve directory listing
Trace: CFileZillaEnginePrivate::ResetOperation(2)
ftp-ssl also issues an error although somewhat different
--> LIST
150 Opening ASCII mode data connection for file list
===>START SSL connect on DATA
ftp: SSL_connect DATA error 0 - error:00000000:lib(0):func(0):reason(0)
226 Closing data connection, sent 70 bytes
421 Service not available, remote server has closed connection
From what I found on the web I suspect this behavior is because close_notify is not issued at the end of connection? If so, is there any known Ruby based solution for that (f.ex. using OpenSSL::SSL::SSLSocket)?
Answer is quite short: no, EventMachine doesn't issue close_notify on close_connection if tls_start was run.
I found SSL 're-opens' a connection after reading the cert, so work around here is:
def receive_data bitOfData
if (self.class isSomeSortOfTLSreadingClass && bitOfData.length == 1) then
#headBuff << bitOfData
return
end
# TLS connection closes on first byte, then re-opens.
end