Ad-hoc networks are a new paradigm of wireless communication for mobile host’s need the certification system allocated by the central authorities and this is done by PKI which secures the network. PKI schemes in an efficient way. Mobile ad hoc network (MANET) technology spreads widely in these days. It is suitable for environments that need on fly setup. A lot of challenges come with implementing these networks. The most sensitive challenge that MANET faces is the security issue. Traditional Public Key cryptography (PKC) and Identity based Cryptography (IBE) are slow and not suitable for these environments because of the nodes resources limitations. This paper is going to discuss the security of MANET using the PKI schemes in an efficient way. This solution provides a secure way for MANET nodes to authenticate each other and to secure data sent by each other, But PKI is having the overhead problems as large number of authentication messages transferred between nodes. In this research we have presented a new algorithm that will extend the drawbacks of PKI technique and make the network much secure and reliable for small and larger scale networks. Keys and certificates have to be issued to each node (trusted), neglecting malicious nodes on the track and finding the valid route to transfer the data, in other words we have to design the algorithm that store all the path in the server and locations of all the nodes, which changes their location dynamically. Keywords: Mobile Ad hoc Networks, Security, Public Key Cryptography, Trusted authority, Central Authority.