Exemple #1
0
        public static string SignData(string text, string pathPkcsCert, string password)
        {
            Pkcs12Store            store = CertHelper.LadePkcsStore(pathPkcsCert, password);
            AsymmetricKeyParameter key   = KeyHelper.GetPrivateKeyFromPkcs12Store(store);

            return(SignData(text, key));
        }
Exemple #2
0
        public static AsymmetricKeyParameter GetPublicKeyFromPkcsStore(string certPath, string passwort)
        {
            Pkcs12Store store = CertHelper.LadePkcsStore(certPath, passwort);

            return(GetPublicKeyFromPkcsStore(store));
        }