Example #1
0
        // methods

        MX.X509Certificate ImportPkcs12(byte[] rawData, SafePasswordHandle password)
        {
            if (password == null || password.IsInvalid)
            {
                return(ImportPkcs12(rawData, (string)null));
            }
            var passwordString = password.Mono_DangerousGetString();

            return(ImportPkcs12(rawData, passwordString));
        }
Example #2
0
        byte[] ExportPkcs12(SafePasswordHandle password)
        {
            if (password == null || password.IsInvalid)
            {
                return(ExportPkcs12((string)null));
            }
            var passwordString = password.Mono_DangerousGetString();

            return(ExportPkcs12(passwordString));
        }