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

              root.Unlock("other");
        }
예제 #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();
        }