Skip to content

Not working with WP.com API #33

@sidati

Description

@sidati

Hi,
im not sure what exactly is the problem but its seems TLS/SSL issue, its working fine with the demo APIs (github/travis) but when im using it with wordpress.com API it just wont work

This config :

app.use(proxy('public-api.wordpress.com/rest/v1.1/sites/132167319', {
   request: {
      prefix: '/api',
      forceHttps: true,
      // rejectUnauthorized: false // I tried to add this option but with no effect
   }
}));

Get me this :

Error: Hostname/IP doesn't match certificate's altnames: "Host: public-api.wordpress.com/rest/v1.1/sites/132167319. is not in the cert's altnames: DNS:*.wordpress.com, DNS:wordpress.com"
    at Object.checkServerIdentity (tls.js:221:17)
    at TLSSocket.<anonymous> (_tls_wrap.js:1104:29)
    at emitNone (events.js:105:13)
    at TLSSocket.emit (events.js:207:7)
    at TLSSocket._finishInit (_tls_wrap.js:628:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:458:38)

Anyone have an idea, what happening ??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions