I am following this blog to create a mdm server link.
In the 7th step they are stripping password from the private key by running this command
openssl rsa -in key.pem -out private.key
But when I run this command on my terminal I am getting error
unable to load Private Key
routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: ANY PRIVATE KEY
I am working on mac. All the steps before that worked fine. In the previous step they asked to enter passphrase I pressed enter without passphrase, is this the reason for this error.
Hope you understand the problem
Thanks
I pressed enter without passphrase, is this the reason for this error.
Yes, you are correct — since you didn't use a passphrase there's nothing to strip out in that step.
Unfortunately the tutorial failed to mention anything about that before you arrived at your conclusion. A passphrase shouldn't (normally) be necessary anyway, as the important private key extracted earlier should be all that you would need.