It looks like you are trying to assign your values from the body of the request. For example: commonName from req.body.commonName However, from the looks of your request in the postman screenshot you are passing the common name in the request parameters instead of the body.
You can do one of two things to get this to work. Either:
Change the code to assign from req.params.commonName (instead of req.body.commonName) or
Leave the code as is. THen, remove all the query params and instead use the body to send the values, like this:
From following your second suggestion, I determined I simply needed to be in the “body” tab rather than the “params” tab when I was entering the key: value pairs.