Error generating and registering RSA API key

I downloaded Win64 OpenSSL v3.0.7 here in this link(Win32/Win64 OpenSSL Installer for Windows - Shining Light Productions) and generated with command below
openssl genrsa -out test-prv-key.pem 2048
openssl rsa -in test-prv-key.pem -pubout -outform PEM -out test-pub-key.pem

And I opened the public key with notepad and here is what I got

-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApi0KgxEt6myMOYGjkY5M
Iw1jyb+bnGk3VGeL6yXSSdxNbfe3hTo0Q1d/MrvkysmqMnWnKx7cXV18YwF7/jRL
SIVNDh3onDl9BiBEojKkujJR48s1qH3gx3YbHy7qTJp3yK8AYJwgEkl8WRUnuvtR
Zj9AdItk+kNCR3TsYFFwb7zbnFVGcmV3osIxcuzViAO7P1brabMVqQjrS+GERVE8
zEOXX4MBYWxxDmqH6SoN6Kee1gBKOGQkSZZU37ea8nmqDoz3mZhnsnN2ba8AQNO1
QVfZW/4iJK2vOtop8YOi4M5ACY2/6K5kfv4idYVVKBSItZ8MCxlhbGd9hf6D6unE
8wIDAQAB
-----END PUBLIC KEY-----

But this is quite shorter than the one in the example FAQ here (https://testnet.binance.vision/)

-----BEGIN PUBLIC KEY-----
bL4DUXwR3ijFSXzcecQtVFU1zVWcSQd0Meztl3DLX42l/8EALJx3LSz9YKS0PMQW
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAv9ij99RAJM4JLl8Rg47b
dJXMrv84WL1OK/gid4hCnxo083LYLXUpIqMmL+O6fmXAvsvkyMyT520Cw0ZNCrUk
WoCjGE4JZZGF4wOkWdF37JFWbDnE/GF5mAykKj+OMaECBlZ207KleQqgVzHjKuCb
hPMuBVVD3IhjBfIc7EEM438LbtayMDx4dviPWwm127jwn8qd9H3kv5JBoDfsdYMB
3k39r724CljqlAfX33GpbV2LvEkL6Da3OFk+grfN98X2pCBRz5+1N95I2cRD7o+j
wtCr+65E+Gqjo4OI60F9Gq5GDcrnudnUw13a4zwlU6W+Cy8gJ4R0CcKTc4+VhYVX
5wW2tzLVnDqvjIN8hjhgtmUv8hr19Wn+42ev+5sNtO5QAS6sJMJG5D+cpxCNhei1
Xm+1zXliaA1fvVYRqon2MdHcedFeAjzVtX38+Xweytowydcq2V/9pUUNZIzUqX7t
Zr3F+Ao3QOb/CuWbUBpUcbXfGv7AI1ozP8LRByyu6O8Z1dZNdkdjWVt83maUrIJH
jjc7jlZY9JbH6EyYV5TenjJaupvdlx72vA7Fcgevx87seog2JALAJqZQNT+t9/tm
rTUSEp3t4aINKUC1QC0CYKECAwEAAQ==
-----END PUBLIC KEY-----

And when I try to register my RSA key, it says invalid public key.
Please help me with this

And my another question is if the value of RSA key is the same as HMAC_SHA256 key
I really appreciate your help

Just tried to register your example of public key for testing at https://testnet.binance.vision/key/register and was successful:

RSA key is in different format than HMAC_SHA256, so it won’t be the same.