Example #1
0
        public void BadPassphraseTest()
        {
            var root = new CACertificate("test", "Root");
              root.CreateSelfSignature();
              root.Lock();

              root.Unlock("other");
        }
Example #2
0
        public void PassphraseTest()
        {
            var root = new CACertificate("test", "Root");
              root.CreateSelfSignature();
              root.Lock();

              root.Unlock("test");

              root.Sign(Encoding.UTF8.GetBytes("hello"));

              root.Lock();
        }