certificate

AWS Lambda doesn't recognize NODE_EXTRA_CA_CERTS

六眼飞鱼酱① 提交于 2021-02-11 14:33:05
问题 I'm using the serverless framework and I'm trying to reference a bundled certificate in a lambda function for some API calls. Locally, when setting and pointing NODE_EXTRA_CA_CERTS to my cert, everything works as it should. I've configured an environment variable for NODE_EXTRA_CA_CERTS with my lambda and point it to the bundled cert as follows in my serverless.yml , but the AWS node environment doesn't pick it up: provider: name: aws region: us-east-2 runtime: nodejs12.x endpointType:

How can I add a private key to a certificate in the windows trust store in c++?

不打扰是莪最后的温柔 提交于 2021-02-11 12:53:29
问题 I have a file with a certificate in it, and I have a file with a private key file in it. if I run this command certutil –MergePFX certfile.cer certfile.pfx I get a pfx file that if I run with explorer, it runs the windows certificate import wizard. If I run through the wizard, I end up with the cert with the key in the windows trust store. Exactly what I need. I'm trying to do this programatically. The problem seems to be in the CertAddCertificateContextToStore function. In the remarks it

php curl with certificate and key file not connecting with swish payment api

早过忘川 提交于 2021-02-11 12:15:22
问题 I need to implement Swish Payment e-commerce API with my website. Testing code given by swish is working fine using Git Bash. Sample is here curl -s -S -i --cert ./Swish_Merchant_TestCertificate_1231181189.pem --key ./Swish_Merchant_TestCertificate_1231181189.key --cacert ./Swish_TLS_RootCA.pem --tlsv1.1 --header "Content-Type: application/json" https://mss.cpc.getswish.net/swish-cpcapi/api/v1/paymentrequests --data '{ "payeePaymentReference" : "0123456789", "callbackUrl" : "https:/

Access windows local machine store with Python win32crypt

喜欢而已 提交于 2021-02-10 14:53:15
问题 I'm trying to access a certificate, that's stored in windows local machine store. This can't be done with wincertstore, as it uses CertOpenSystemStoreA function (see remarks: https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-certopensystemstorea) However CertOpenStore from pywin32 has access, I just don't know how to pass the right parameters. Here's my code: import win32crypt # store provider CERT_STORE_PROV_SYSTEM = 13 #dwFlags CERT_SYSTEM_STORE_CURRENT_SERVICE =

Nifi: how to make ListenHTTP work with SSL

。_饼干妹妹 提交于 2021-02-10 06:59:40
问题 Objective Because of Nifi integration with other tools through HTTP, I have to make ListenHTTP processor public facing. API Gateway on all 3 environments is too expensive for me. So I closed all VM ingress ports (except the one needed for ListenHTTP ) for outer networks. Issue My configuration of ListenHTTP with StandardRestrictedSSLContextService doesn't work. Without SSL it worked, but was unsecure. user$ curl -X POST -H "Content-Type: application/json" --data "test" https://localhost:7070

How to restrict usage of an API key with Hash comparison

断了今生、忘了曾经 提交于 2021-02-10 06:22:07
问题 I'm currently using Spotify in my Android app, but I am required to use a Secret in order to refresh tokens and such. I would like to transmit the secret from my Backend to the app, so the secret does not reside in the APK and cannot be found when decompiling. I've read a lot only about securing secrets in your app, via various ways like proxies, just using your own backend, putting the code into native C++ code (NDK) in the app or using the Hash of the app to determine whether the app is

Converting PEM file to PKCS8 programmatically

拜拜、爱过 提交于 2021-02-09 01:44:08
问题 I want to convert pem file to pk8. I can do this with openssl on terminal as ; openssl pkcs8 -topk8 -inform PEM -outform DER -in client-key.pem -out client-key.pk8 -nocrypt But I need to do this programmatically on java. Its look like there is a package for cryptography which contains openssl implementation as Bounty Castle but I couldn't figure out how can do this converting process. Is there a way for doing that ? 回答1: The test code of Bouncy Castle contains an example of how to read an RSA

Converting PEM file to PKCS8 programmatically

旧巷老猫 提交于 2021-02-09 01:42:28
问题 I want to convert pem file to pk8. I can do this with openssl on terminal as ; openssl pkcs8 -topk8 -inform PEM -outform DER -in client-key.pem -out client-key.pk8 -nocrypt But I need to do this programmatically on java. Its look like there is a package for cryptography which contains openssl implementation as Bounty Castle but I couldn't figure out how can do this converting process. Is there a way for doing that ? 回答1: The test code of Bouncy Castle contains an example of how to read an RSA

Service Fabric: Authenticating with Azure KeyVault via cert: “KeySet does not exist”

坚强是说给别人听的谎言 提交于 2021-02-08 15:16:27
问题 This is the scenario I am trying to enable: I wish to authenticate to an azure keyvault from my web service application (azure service fabric) via a client certificate. These are the steps I'm following: Add a certificate to my keyvault in azure (self signed) Download certificate via azure powershell (pfx) Create Azure App Instance to identify my app Associate certificate with app Create service principal for the azure app Give principal access to keyvault All looks good. When I spin up my

Service Fabric: Authenticating with Azure KeyVault via cert: “KeySet does not exist”

▼魔方 西西 提交于 2021-02-08 15:15:05
问题 This is the scenario I am trying to enable: I wish to authenticate to an azure keyvault from my web service application (azure service fabric) via a client certificate. These are the steps I'm following: Add a certificate to my keyvault in azure (self signed) Download certificate via azure powershell (pfx) Create Azure App Instance to identify my app Associate certificate with app Create service principal for the azure app Give principal access to keyvault All looks good. When I spin up my