csr unknown error -2,147,409,850

Im trying to generate a CSR certificate but the assistent throw a unknown error with the code

-2,147,409,850

Reaching out across space and time because I hit the same issue, and this was the only result on the whole internet I came across.

My situation: I'm building a PWA, and packaging that as an iOS app using PWABuilder. As part of this (step #3 "Create a Certificate Signing Request (CSR)" from their iOS guide), I'm supposed to create a CSR to upload the the portal and them import into the keychain, but that process isn't working.

I've tried a few workarounds I saw for other, similar Keychain Access errors on the internet, e.g. selecting "Let me specify key pair information", but the error remains the same, screenshot below:

Same here. Trying to get a CSR so I can make a Certificate and continue along in my PWA process. Using an AWS Mac VM.

The solution described here by larry-oj worked for me! https://github.com/pwa-builder/PWABuilder/discussions/4537

You may need to massage the command to point at a dir your AWS user has access to editing and in my case the openssl.cnf file was missing so needed to set a path to that as well. https://serverfault.com/questions/1098257/cant-open-usr-lib-ssl-openssl-cnf

I was able to make it work with this command in terminal:

openssl req -config /System/Library/OpenSSL/openssl.cnf -new -newkey rsa:2048 -nodes -keyout /Users/ec2-user/Downloads/mykey.key -out /Users/ec2-user/Downloads/myrequest.csr

Hope this helps some lonely traveler...

csr unknown error -2,147,409,850
 
 
Q