Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #1413
Closed
Open
Issue created Jan 19, 2017 by Administrator@rootContributor

getPeerCertificate() is an empty object when using dev server

Created by: patorjk

I've got an Express server that's set up to use PKI authentication for the users (corp app where all users have certs in their browser). For my create-react-app setup, I've updated package.json to proxy requests to the Express server, but it looks like the dev server doesn't pass along the user's cert. When my authentication code runs on the Express server, and the app is accessed through the webpack dev server, an empty object is returned: (though it works fine when accessing the Express server API directly through the browser)

var peerCertificate = req.connection.getPeerCertificate()

I don't see a way to to configure things so that this information gets passed along too. Am I missing something or doing something incorrectly? Or is this something that could be added in?

Assignee
Assign to
Time tracking