Skip to content

Accessing google cloud storage - UNABLE_TO_GET_ISSUER_CERT_LOCALLY #1517

@abhiofdoon

Description

@abhiofdoon

Hi,

I am behind a company firewall and I am trying to access Google cloud storage using the nodeJs Client API.

var gcloud = require('gcloud');

var gcs = gcloud.storage({
  keyFilename: './key-file.json',
  projectId: 'awesome-project'
});

gcs.getBuckets(function(err, result) {
  if (err) {
      console.log(err);
    } else {
      console.log(result);
    }
});

I get the following error which I try to run this.

$ node gs.js
{ [Error: unable to get local issuer certificate] code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY' }

Can i connect to google cloud storage using the API with SSL certificate validation disabled ?

Thanks,
Abhishek

Metadata

Metadata

Labels

coretype: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions