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)); }
public static AsymmetricKeyParameter GetPublicKeyFromPkcsStore(string certPath, string passwort) { Pkcs12Store store = CertHelper.LadePkcsStore(certPath, passwort); return(GetPublicKeyFromPkcsStore(store)); }