After spending enough time on R&D, i've found the proper way to install the fastlane.
Here i'm posting some command. just paste it on your terminal one by one
1: curl -L https://get.rvm.io | bash -s stable --auto-dotfiles --autolibs=enable —rails
2: GPG Install -> ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
3: brew install gnupg
4: RVM Install -> gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113XXXXXXXXXXX 7D2BAF1CF37B13E2069XXXXXXXXXXXXXX
5: source /Users/bedi/.rvm/scripts/rvm
6: curl -sSL https://get.rvm.io | bash -s stable --ruby
7: gem install fastlane
8: brew list openssl@1.1
9: ln -s /usr/local/Cellar/openssl@1.1/1.1.0f/bin/openssl /usr/local/bin/openssl
That's it now you have a fully pre-requites setup for fastlane. Now you can set it up according to your target OS.