signing

Login to a RESTful Rails app with HTTParty

萝らか妹 提交于 2020-01-05 12:09:17
问题 I have a web app with a clean RESTful JSON API, based on Rails 3.2 , Ruby 1.9 and Devise 2 . I would like to write a small script based on HTTParty web client in order to perform some actions frequently (with a crontab). But how can we sign in and keep the session open (with the session id passed by HTTP HEADER, and maybe stored in a cookie). I really have no experience about this aspect. 回答1: According to this mailing list comment as of January, may not be possible: https://groups.google.com

Signing CAB file with signtool not working any more (The signer's certificate is not valid for signing)

冷暖自知 提交于 2020-01-05 08:08:46
问题 Few month ago a was able to successfully sign CAB file with test certificate I have created on my server. Here are the steps I have taken: makecert.exe -sv "Demo.pvk" -n "CN=Demo Company,E=demo@gmail.com" "Demo.cer" cert2spc.exe "Demo.cer" "Demo.spc" pvk2pfx.exe -pvk "Demo.pvk" -pi "pvk_password" -spc "Demo.spc" -pfx "Demo.pfx" -po "pfx_password" signtool.exe sign /f "Demo.pfx" /p "pfx_password" /v "D:\Setup.cab" All the steps are successfull except the last one with signtool that returns:

How do i sign a BinarySecurityToken in soap message

99封情书 提交于 2020-01-03 17:26:27
问题 I have the following C# code to call a web service. System.ServiceModel.Channels.AsymmetricSecurityBindingElement asbe = new AsymmetricSecurityBindingElement(); asbe.MessageSecurityVersion = MessageSecurityVersion.WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10; asbe.InitiatorTokenParameters = new System.ServiceModel.Security.Tokens.X509SecurityTokenParameters(); asbe.RecipientTokenParameters = new System.ServiceModel.Security.Tokens

How do i sign a BinarySecurityToken in soap message

自闭症网瘾萝莉.ら 提交于 2020-01-03 17:26:16
问题 I have the following C# code to call a web service. System.ServiceModel.Channels.AsymmetricSecurityBindingElement asbe = new AsymmetricSecurityBindingElement(); asbe.MessageSecurityVersion = MessageSecurityVersion.WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10; asbe.InitiatorTokenParameters = new System.ServiceModel.Security.Tokens.X509SecurityTokenParameters(); asbe.RecipientTokenParameters = new System.ServiceModel.Security.Tokens

KeystoneJS signin

纵然是瞬间 提交于 2020-01-02 13:47:13
问题 I am creating a keystone project and I need to provide allow or not allow users to access using the keystone signin. However, I found that keystoneJS sends a form data with email, password and csrf. This csrf is given to the user when he access to the login page. Nevertheless, what I need to do is to comunicate externally to login the user, by using an API. How can I generate the _csrf? Is there another way then generate two requests? Thanks 回答1: @Sericaia, you didn't include any code or

Add Signing Time to PKCS7 Signed CMS?

 ̄綄美尐妖づ 提交于 2020-01-01 10:14:32
问题 I'm trying to add the signing time attribute to a file that I am signing using SignedCMS. private byte[] signFile(byte[] fileContent, X509Certificate2 verificationCert) { ContentInfo contentInfo = new ContentInfo(fileContent); SignedCms signedCMS = new SignedCms(contentInfo); CmsSigner cmsSigner = new CmsSigner(SubjectIdentifierType.IssuerAndSerialNumber, verificationCert); Oid signedDate = new Oid("1.2.840.113549.1.9.5"); //oid for PKCS #9 signing time signedDate.Value = DateTime.Now

Add Signing Time to PKCS7 Signed CMS?

人盡茶涼 提交于 2020-01-01 10:14:09
问题 I'm trying to add the signing time attribute to a file that I am signing using SignedCMS. private byte[] signFile(byte[] fileContent, X509Certificate2 verificationCert) { ContentInfo contentInfo = new ContentInfo(fileContent); SignedCms signedCMS = new SignedCms(contentInfo); CmsSigner cmsSigner = new CmsSigner(SubjectIdentifierType.IssuerAndSerialNumber, verificationCert); Oid signedDate = new Oid("1.2.840.113549.1.9.5"); //oid for PKCS #9 signing time signedDate.Value = DateTime.Now

Signing an app, but not publishing on Android market

狂风中的少年 提交于 2020-01-01 09:18:24
问题 The Android system has a flag called "Unknown Sources" that allows it to install applications from non-market sources. If I sign my application as described on the android developer website (i.e. with a certificate that is created using the private keys I got from google), and decide not to publish my application on the android market, but host it on my own site. Will this application be considered a non-market by the android system ? Will it still install with the "Unknown Sources" option

Non-detached PKCS#7 SHA1+RSA signature without M2Crypto

这一生的挚爱 提交于 2019-12-28 04:26:06
问题 I'm trying to create a non-detached signature on python3. I currently have code that does this on python2 with m2crypto, but m2crypto isn't available for python3. I've been trying rsa, pycrypto and openssl, but haven't seen to find how. Here's the equivalent OpenSSL command: openssl smime -sign -signer $CRTFILE -inkey $KEYFILE -outformDER -nodetach It's the nodetach option that I can't imitate with either rsa, pyopenssl or pycrypto. Has anyone does this on python3? I'd like to avoid using

multiple Play Store Accounts sharing same android signing key

寵の児 提交于 2019-12-25 05:32:59
问题 as the title says, can a signed android apk be published/signed by multiple google play accounts? we have a possible new requirement where we will have to remove the existing play account and create a new one but we are keeping the same signed keys for our apps and do not want to upload a whole new app with new signing key. Is this possible? 回答1: You can add additional users to your applications and give them whatever permissions you feel are appropriate. To do so, follow the Add Developer