---BEGIN __ KEY-----' and '-----END __ KEY-----' Copy public key
Solution 1:
Those BEGIN and END lines are normal parts of "PEM encoding", which is the most common format for storing things like keys or certificates in text form.
It's best to keep those lines, as it will help most software that expects PEM formatted keys, to realize what kind of key you're pasting in. If you run across any software that expects PEM format keys and isn't smart enough to deal with the BEGIN/END lines, then it's pretty crappy software. Unfortunately, there's a lot of crappy software in the PKI world, so it wouldn't surprise me if sometimes you have to strip the lines off manually.