- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我需要创建后期构建事件来执行以下操作:
sn -i MyKey.pfx MyKeyContainerName
tlbimp $(ConfigurationName)\MyCom.tlb /out:$(ConfigurationName)\NETMyCom.dll /keycontainer:MyKeyContainerName
sn -d MyKeyContainerName
当 Visual Studio 执行第一条语句时,它需要密码并等待直到用户指定它并失败。
Microsoft (R) .NET Framework Strong Name Utility Version 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved.
Enter the password for the PKCS#12 key file: Failed to parse the PKCS#12 blob in mykey.pfx -- The handle is invalid.
我尝试使用 sn 命令行参数指定密码,但我找不到执行此操作的方法。
请帮忙。
问候,希尔米。
最佳答案
不幸的是,这里提到的方法都不适合我。我必须在 docker 容器中注册几个 pfx。
所以我重新开发了 sn.exe -i <infile> <container>
在 C# 中使用 RSACryptoServiceProvider 命令.源代码和应用程序在 GitHub 上SnInstallPfx项目。
SnInstallPfx应用程序接受 PFX key 及其密码。它自动计算 key 容器名称 (VS_KEY_*)(借用自 MSBuild 源代码)并将其安装到强名称 CSP。
用法:
SnInstallPfx.exe <pfx_infile> <pfx_password>
关于c# - Sn.exe自动输入密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3138106/
我用以下查询创建了 3 个表: S表: CREATE TABLE S ( SN INT, SNAME CHAR(10), RATING FLOAT, CITY CHAR
Does anyone know how to use swap() method now sn kotlin? Because it shows me an error that there
Sn Kotlin现在有人知道如何使用swap()方法吗?因为它向我展示了一个错误,即没有这样的方法。。在此处输入图像描述。我试着把这个代码复制到我的电脑里。我看到了很多如何重写它的例子,但这是一个关
我需要创建后期构建事件来执行以下操作: sn -i MyKey.pfx MyKeyContainerName tlbimp $(ConfigurationName)\MyCom.tlb /out:$(
当我使用强名称工具创建一个新的 key 来签署 .NET 程序集时,我收到一条访问被拒绝错误消息。这在 Windows XP 机器上运行良好,但在我的 Vista 机器上不起作用。 PS C:\use
Sn.exe 提供用于 key 管理、签名生成和签名验证的选项。 使用以下命令创建公钥和私钥对 - sn -k keyPair.snk 可以使用 - 提取公钥 sn -p keyPair.snk pu
从 MSDN 帮助中,它说 -Vr 选项是: 注册程序集以跳过验证。 我的问题是,当使用 -Vr 时,它只会更改程序集文件本身还是也会更改系统注册表。无论我是在开发机器上还是在最终部署的机器上发出此命
我正在尝试使用 Spring-Data-LDAP 创建一个条目,当我尝试保存条目时,它给了我属性 sn 未在条目 ou=users,dc=example,dc=com 的 objectClasses
我查看了 C:\Program Files\Microsoft.NET,但看不到任何 SN.exe 文件。 我安装了 .NET 3.5 运行时;这还不够吗? 最佳答案 您需要安装 Windows SD
代码契约重写器使用强名称 (sn.exe) 实用程序来放弃重写的程序集。然而,在 VS 2010 的输出 Pane 中我看到: Microsoft (R) .NET Framework Strong
要在 .NET 中使用 sn.exe 对程序集进行签名,是否可以指定一个公钥,其私钥仅包含在 Windows CryptoAPI keystore 中? 我看到了用于指定 CSP 名称和容器名称的选项
我已经在 Windows 上运行 MQTT (Mosquito) 一段时间了,它与我的 Netduino 配合得很好,谢谢 ppatierno。 但现在我需要开始整合 mqtt-sn 以实现来自 Ar
我需要在构建完成后重新签署我的程序集(并且我已经对它做了一些其他的事情),所以我开始添加一个 调用的任务 C:\Program Files (x86)\Microsoft SDKs\Windows\v
我有一个带有 .NET 库的项目,我用 ConfuserEx 进行了混淆。在保护运行期间,我收到一条警告,说明如下: [WARN] [foo.dll] SN Key is not provided f
我正在尝试在 Windows 7 机器上构建/签署程序集,但出现以下异常: x:\> SN -q -Vr "x:\someassembly.dll" Failed to open registry k
如果 MQTT 已经是一个轻量级协议(protocol),而且它使用的功率和带宽很少,那么为什么我们有 MQTT-SN?什么时候适合使用 MQTT,什么时候适合使用 MQTT-SN? 最佳答案 与 M
我在 Android 上遇到这个错误: 我在“index.android.bundle”中找到了代码行 'Sn[e]',我已将其粘贴在下方 (ctrl/command + F): for (var A
我想运行 sn.exe 以便能够在服务器中运行延迟签名的项目。如果我安装整个 Windows SDK 一切运行顺利,但需要 SDK 的哪一部分?我问是因为整个下载是 460Mb 并且可能安装了我不需要
我的问题是关于通过 MQTT-SN 网关使用 MQTT 主题名称和 MQTT-SN 主题 ID 配置 RSMB。 使用“Getting started with the Really Small Me
试图了解这些用于Windows C# 开发的开发工具之间的区别。任何人都可以澄清这些困惑吗? 强名称工具 (sn.exe),此工具是将程序集复制到 GAC 中还是仅对程序集进行签名?用于将程序集添加到
我是一名优秀的程序员,十分优秀!