new PublicKey management
improved new public key management
refactoring
refactoring
refactored certificate methods