# Is sharing the RSA public key secure?

I am trying to understand how RSA public key cryptography works. I have the following questions:

1. Are any attacks / compromises possible if a server sends its public key $(n,e)$ in the clear to a client?

2. Suppose a server is using the same public key $(n,e)$ for all the clients in a LAN. Does this pose a threat?

## migrated from stackoverflow.comMar 10 '16 at 12:55

This question came from our site for professional and enthusiast programmers.

• As @SergioAndrésFigueroaSantos points out below, if you could give us more context, we could give you a much better answer (what is RSA being used for? What kind of network environment is it being run in? What kind of attacks are you worried about?). – Mike Ounsworth Mar 10 '16 at 13:43

1. Are any attacks / compromises possible if a server sends its public key $(n,e)$ in the clear to a client?
1. Suppose a server is using the same public key $(n,e)$ for all the clients in a LAN. Does this pose a threat?