草庐IT

certificate-authority

全部标签

xcode - iOS 错误 "Embedded binary is not signed with the same certificate as the parent app"

这是我在IOS应用程序开发中的第一步,我遇到了一些我无法弄清楚的问题。error:Embeddedbinaryisnotsignedwiththesamecertificateastheparentapp.Verifytheembeddedbinarytarget'scodesignsettingsmatchtheparentapp's.EmbeddedBinarySigningCertificate:NotCodeSignedParentAppSigningCertificate:iPhoneDeveloper:EmilAdz(9QNEF95395)我不明白,什么是嵌入式二进制签名证

c# - Visual Studio 在线 TF30063 : You are not authorized to access

我正在尝试通过WebAPI连接到我的VisualStudioOnline帐户。按照这里的步骤操作:http://blogs.msdn.com/b/buckh/archive/2013/01/07/how-to-connect-to-tf-service-without-a-prompt-for-liveid-credentials.aspxNetworkCredentialnetCred=newNetworkCredential("myaccount@gmail.com","mypassword");BasicAuthCredentialbasicCred=newBasicAuthCr

c# - 将私钥与 .net 中的 X509Certificate2 类相关联

我正在编写一些代码来创建X509证书和公钥/私钥对。公钥被添加到证书中,并被发送到对其进行签名的CA。然后通过System.Security.Cryptography.X509Certificates.X509Certificate2类访问返回的证书。现在我想使用这个证书来启动与其他客户端的安全连接。因此我使用SslStream类。要启动SSL握手,我使用以下方法:server.AssociatedSslStream.AuthenticateAsServer(MyCertificate,//ClientCertificatetrue,//RequireCertificatefromco

c# - FormsAuthentication.SetAuthCookie 在 MVC 5 中没有 [Authorize]

我创建了一个全新的ASP.NETMVC5项目来测试带有FormsAuthentication.SetAuthCookie的[Authorize]属性。我只是在一个操作中设置了一个cookie(在我的HomeController中):publicActionResultAbout(){FormsAuthentication.SetAuthCookie("someUser",false);我限制对另一个的访问:[Authorize]publicActionResultContact(){当我启动我的网页并导航到/home/contact时,我被正确地重定向到登录页面。然后我转到/home/

c# - 使用私钥将 X509Certificate2 导出到字节数组

我的商店中有一个X509Certificate2证书,我想将其导出到字节数组和私钥。证书字节数组必须这样,当我稍后从字节数组导入证书时,私钥将包含私钥。我尝试了很多方法都没有成功导出带有私钥的证书。X509Storestore=newX509Store(StoreLocation.CurrentUser);store.Open(OpenFlags.ReadOnly);X509Certificate2cert=store.Certificates[1];byte[]certBytes=cert.GetRawCertData();//Obviouslydoesnotwork!是否可以将带私

c# - X509Certificate.CreateFromCertFile - 指定的网络密码不正确

我有一个.NET应用程序,我想将其用作客户端来调用SSLSOAPWeb服务。我已获得名为foo.pfx的有效客户端证书。证书本身有一个密码。我已将证书放在以下位置:C:\certs\foo.pfx要调用网络服务,我需要附加客户端证书。这是代码:publicX509CertificateGetCertificateFromDisk(){try{stringcertPath=ConfigurationManager.AppSettings["MyCertPath"].ToString();//thisevaluatesto"c:\\certs\\foo.pfx".Sofarsogood.X

c# - 将 [Authorize] 属性隐式应用于所有 Web API Controller

我的应用程序设置为除登录之外的所有请求都必须使用WebAPI中的授权属性进行“授权”。例如[Authorize][HttpGet,Route("api/account/profile")]publicApplicationUserProfile(){returnuserModel;}并且只有登录不需要授权,因为那是您获得token的地方;)[AllowAnonymous][HttpPost,Route("api/account/login")]publicasyncTaskLogin(LoginViewModelmodel){....}不必将[Authorize]属性添加到我的所有路由

c# - 通过 Authorize.Net C# SDK 使用银行账户

在玩弄了Authorize.NetCIMXMLAPIC#samplecode之后,我开始使用Authorize.NetC#SDK.我能够使用CIMXMLAPI示例代码将信用卡和银行帐户添加到客户资料中。不过,我不知道如何使用SDK添加银行账户。使用CIMXMLAPI添加银行账户:...customerPaymentProfileTypenew_payment_profile=newcustomerPaymentProfileType();paymentTypenew_payment=newpaymentType();bankAccountTypenew_bank=newbankAcco

c# - Azure 网站中的站点无法处理 X509Certificate2

我在Azure网站(不是托管服务)中有站点,我需要在那里处理带有私钥的.pfx证书。varx509Certificate2=newX509Certificate2(certificate,password);但我遇到了以下异常:System.Security.Cryptography.CryptographicException:Thesystemcannotfindthefilespecified.atSystem.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32hr)atSy

c# - 从 PKCS#12 字节数组构建 X509Certificate2 如何抛出 CryptographicException ("The system cannot find the file specified.")?

我试图从一个字节数组中的PKCS#12blob构造一个X509Certificate2并得到一个相当令人费解的错误。此代码在具有WindowsXP管理员权限的桌面应用程序中运行。堆栈跟踪如下,但我在尝试排除故障时迷路了,因为_LoadCertFromBlob被标记为[MethodImpl(MethodImplOptions.InternalCall)]。System.Security.Cryptography.CryptographicException:Thesystemcannotfindthefilespecified.atSystem.Security.Cryptography