Posts

Showing posts with the label google-cloud-platform

SSL23_GET_SERVER_HELLO:unknown protocol

SSL23_GET_SERVER_HELLO:unknown protocol I have read all postings on this error, and tried all the answers, but problem is still not resolved. Running Debian 8 virtual machine created by Google Cloud Platform, created a Self-Signed SSL and configured the default-ssl file as per instructions, and still getting error when connecting to port 443. Here is the command that I ran and the message that I got. Any insightful help would be welcome: openssl s_client -connect localhost:443 140700056811152:error:140770FC:SSL routines: :s23_clnt.c:782: --- no peer certificate available --- No client certificate CA names sent --- SSL handshake has read 7 bytes and written 289 bytes --- New, (NONE), Cipher is (NONE) Secure Renegotiation IS NOT supported Compression: NONE Expansion: NONE SSL-Session: Protocol : TLSv1.2 Cipher : 0000 Session-ID: Session-ID-ctx: Master-Key: Key-Arg : None PSK identity: None PSK identity hint: None SRP username: None Start T...

Define GOOGLE_APPLICATION_CREDENTIALS for google-cloud-speech , Java Desktop Application

Image
Define GOOGLE_APPLICATION_CREDENTIALS for google-cloud-speech , Java Desktop Application I am completely new using google-cloud-java. Trying to do some Speech Recognition using the google-cloud-speech . Speech Recognition I have written the below code , but there is a problem , i don't know how to specify the credentials so i get the below error, no clue how to do it and searching the web 2 hours now : java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment v ariable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defini ng the credentials. See https://developers.google.com/accounts/docs/application- default-credentials for more information. Send audio from Microphone to Google Servers and return Text package googleSpeech; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; import javax.sound.sampled.AudioFormat; import javax.sound.sa...

connect to client VPN with google compute engine

connect to client VPN with google compute engine I am planning to use google compute engine as my development environment. I am writing code for a client and the code to run needs to call the client database that is behind VPN. I can connect to the VPN with my desktop as I have the config files. How can I do the same with google compute engine? Basically I need to connect the instance to the vpn. (The client is using OpenVPN) EDIT: I have tried to do as suggested but when I do it the VM freezes completely (actually I think what happen is that the machine is not reachable anymore with ssh). Am I doing something wrong? This is what I have tried: lucapuggio@avora:~/avora_vpn/openvpn-files$ sudo openvpn AVORA-duo.conf Mon Jul 2 17:26:41 2018 OpenVPN 2.4.0 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jul 18 2017 Mon Jul 2 17:26:41 2018 library versions: OpenSSL 1.0.2l 25 May 2017, LZO 2.08 Enter Auth Username: luca.puggini Enter Auth ...

x-devapi unable to connect to database in Google app-engine

x-devapi unable to connect to database in Google app-engine I am deploying a simple nodejs server to App-engine which works well except for the database connection using the X-devapi . I am getting this error: nodejs X-devapi All routers failed. All routers failed. Here is the code I use: 'use strict'; const express = require('express'); const mysqlx = require('@mysql/xdevapi'); const app = express(); app.get('/', (req, res) => { const options = { user: 'user_name', password: '@pass',host: 'XX.XXX.XX.XXX' /*Here I used Public IP address on the of the SQL instance*/,port: XXXX /*I assigned port 8080 here*/, schema: 'db_name' }; (async function () { let session; try { session = await mysqlx.getSession(options); const collection = await session.getSchema(options.schema).createCollection('collection'); await collection.add({ name: 'foo' }).execute(); await collection.find().fields(...