Being of value to your client or your boss is invaluably important to job security. But how does one go about creating value? You become more knowledgeable and indispensable. Learn as much as you can about what your boss/client does.
Ask questions. Most people are flattered to know that you care enough to ask how they do what they do and why they do it.
By learning more and asking more, you will be able to answer questions about the client/boss to his or her potential clients. If you can help him or her along this is way, you will inevitably become indispensable.