In this paper, the security of spatial database access is studied, which discusses security problems about spatial database access and transmission, and presents a solution to guarantee spatial data access security and solve some problems, including identity authentication and security transmission of secret data. We present a solution to avoid the shortcoming of SSL protocol. At the same time, a new concept is introduced in this paper, which is certificate and private key cruising. Finally, we give an application to verify the solution. It is found that our solution is very convenient to users and can make sure the security of spatial database.