Gem install on Windows not working

I encountered this problem a week ago.

I did a little bit of research and found two possible solutions. One I
have already tried the other, I don’t understand very well.

One is

The other is

I tried the second one and it didn’t work.

Can someone explain to me how to use the first one? I don’t know where
and what to do. I’m not good with certificates and stuff.