x509

Can not pull docker image from private repo when using Minikube

只愿长相守 提交于 2019-12-04 09:28:15
问题 I am attempting to use Minikube for local kubernetes development. I have set up my docker environment to use the docker daemon running in the provided Minikube VM (boot2docker) as suggested: eval $(minikube docker-env) It sets up these environment variables: export DOCKER_TLS_VERIFY="1" export DOCKER_HOST="tcp://192.168.99.100:2376" export DOCKER_CERT_PATH="/home/jasonwhite/.minikube/certs" When I attempt to pull an image from our private docker repository: docker pull oururl.com:5000/myimage

Request with X509 Certificate

可紊 提交于 2019-12-04 06:50:37
I have received a X509 certificate (one .cer file), I can decode it, so no problems on that. Now I want to sign a request with this certificate in node, but I can't get this to work: var https = require("https"); var fs = require("fs"); var options = { host: 'management.core.windows.net', path: '/my-subscription-id/services/hostedservices', port: 443, method: 'GET', cert: fs.readFileSync("./SSLDevCert.cer"), agent: false }; var req = https.request(options, function(res) { console.log("statusCode: ", res.statusCode); console.log("headers: ", res.headers); res.on('data', function(d) { process

Crypto/X509 certificate parsing libraries for Python

独自空忆成欢 提交于 2019-12-04 06:31:46
Any recommended crypto libraries for Python. I know I've asked something similar in x509 certificate parsing libraries for Java , but I should've split the question in two. What I need is the ability to parse X.509 Certificates to extract the information contained in them. Looking around, I've found two options: Python OpenSSL Wrappers ( http://sourceforge.net/projects/pow ) pyOpenSSL Of the two, pyOpenSSL seems to be the most "maintained", but I'd like some feedback on anybody who might have experience with them? You might want to try keyczar as mentioned by me in your other post, since that

Java client to WCF service interop with mutual certificate - Cannot resolve KeyInfo for verifying signature

对着背影说爱祢 提交于 2019-12-04 06:25:43
Exception: MessageSecurityException: Cannot resolve KeyInfo for verifying signature: KeyInfo 'SecurityKeyIdentifier I have to set up a WCF service to receive SOAP calls from a Java client that is sending signed content with the following header: <soap:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1"> <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="Signature-2"> <ds:SignedInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10

Using a X509 Certificate in .Net Compact Framework for Client Authentication HTTPRequest

£可爱£侵袭症+ 提交于 2019-12-04 05:27:43
I'm working in Windows Mobile 6 and would like to have client authentication when talking to a Apache webserver. I have a certificate in my local certificate store and it should be rather straightforward: X509Store myStore = new X509Store("MY", StoreLocation.CurrentUser); myStore.Open(OpenFlags.ReadOnly); X509Certificate2Collection certificates = myStore.Certificates; X509Certificate2 clientcertificate; foreach (X509Certificate 2certificate in certificates) { clientcertificate = certificate; //omitted code to validate certificate } HttpWebRequest req = (HttpWebRequest)WebRequest.Create(webPage

Check X509 certificate revocation status in Spring-Security before authenticating

ぃ、小莉子 提交于 2019-12-04 04:27:35
问题 Is it possible to check the revocation status of a x509 client certificate through the CRL in spring-security before authenticating it? I've checked documentations (http://static.springsource.org/spring-security/site/docs/3.0.x/reference/x509.html) but it doesn't mention anything about CRL. Implementing UserService only gives you the username and not the X509Certificate. Any help would be appreciated! Thanks! 回答1: I'm not sure about the specifics of Spring-Security, but if it's based on the

Reading a certificate signing request with C#

萝らか妹 提交于 2019-12-04 04:12:32
I want to read the contents of a CSR in C#. However, I haven't found any way to do it in C#. What I've found was the namespace System.Security.Cryptography.X509Certificates , but it only handles existing certificates, not certificate requests. Can anyone give me an hint about it? Thanks in advance. There is a way, the CertEnroll library which comes with Windows (although I can't say how far back it's been there) allows you to load certificate requests and have them parsed. First you need to import a reference to the CERTENROLLLib COM library into your project. This will create a CERTENROLLLib

what is the difference between X509_STORE and X509_STORE_CTX .?

只愿长相守 提交于 2019-12-04 03:43:45
can any one tell me how the Certificate trust chain is formed with these structures and what these two structure represent? Taken from the source code in x509vfy.h: The X509_STORE holds the tables etc for verification stuff. A X509_STORE_CTX is used while validating a single certificate. The X509_STORE has X509_LOOKUPs for looking up certs. The X509_STORE then calls a function to actually verify the certificate chain. The X509_STORE represents more or less your global certificate validation setup, where you store the intermediate certificates and CRLs. The store can be used multiple times,

Create a X509Certificate2 from RSACryptoServiceProvider fails with Cannot find the requested object

痞子三分冷 提交于 2019-12-04 03:16:56
Sample code: CspParameters cspParameters = new CspParameters(); cspParameters.ProviderType = 1; // PROV_RSA_FULL // Create the crypto service provider, generating a new // key. mRsaCSP = new RSACryptoServiceProvider(mDefaultKeyLength, cspParameters); mRsaCSP.PersistKeyInCsp = true; RSAParameters privateKey = mRsaCSP.ExportParameters(true); byte[] rsaBytes = mRsaCSP.ExportCspBlob(true); try { X509Certificate2 cert = new X509Certificate2(rsaBytes); mKeyDataPfx = Convert.ToBase64String(cert.Export(X509ContentType.Pkcs12, password)); } catch (Exception ce) { string error = ce.Message; } Here is my

X509 serial number using java

五迷三道 提交于 2019-12-04 02:23:45
I need to get some data from X509 certificate. If I open a certificate file in windows, its showing its serial number in this format. ex. 39 65 70 eb d8 9f 28 20 4e c2 a0 6b 98 48 31 0d The same data I am trying to obtain using java. After get it loaded, I use x509.getSerialNumber(); and result is : 76292708057987193002565060032465481997 So what is the difference between both of these ? I want the result as upper one. Windows shows the hexadecimal representation of the serial number, whereas Java returns a BigInteger result from X509Certificate.getSerialNumber() . To display the BigInteger as