certificate

eToken java keytool certificates

允我心安 提交于 2019-12-13 21:21:47
问题 I'm using eToken in Linux and I need to view certificates stored on eToken in JAVA. I have been searching for tools and I found keytool, but If I use this howto, keytool shows me that there is 0 certs. in keytool-etoken.cfg I have: name = eToken library = /usr/lib/libeTPkcs11.so command: keytool -list -keystore NONE -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11 -providerArg keytool-etoken.cfg output: Enter keystore password: Keystore type: PKCS11 Keystore provider: SunPKCS11

Certificate validation doesn't use proxy settings for chaintrust

China☆狼群 提交于 2019-12-13 21:04:31
问题 I've been struggling to get a WCF client to work through a web proxy. If I manually specify the proxy as below, I can get the http request to work. WebProxy proxy = new WebProxy("http://x.x.x.x:3128", false); proxy.Credentials = new NetworkCredential("user", "pass"); WebRequest.DefaultWebProxy = proxy; However I have the client service proxy set to use ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = System.ServiceModel.Security.X509CertificateValidationMode

Tell Java to use Windows keystore

一笑奈何 提交于 2019-12-13 18:42:16
问题 Our customer is using its own Root CA for internal applicatins. The certificate is in the Windows Keystore but not in the Java Keystore. How can I tell my Java Web Start Application to use the Windows Keystore for searching the valide cert for SSL connections? Importing the cert into each Java Keystore is no option! EDIT: Main reason I want to use the Windows keystore is to verify the certificate of my signed application 回答1: The JVM will search for the certificate in the JREPATH\lib\security

Checking if a security exception has been accepted by the client

家住魔仙堡 提交于 2019-12-13 18:27:52
问题 We have a few staging environments for internal testing/dev that do not use "real" SSL certs. Honestly I'm a bit fuzzy on the details, but the bottom line is when accessing a subdomain on those environments, browser would prompt you to add a security exception along the lines of "You have asked Firefox to connect securely to example.com but we can't confirm that your connection is secure" : Could this be detected e.g. by making a request to the url in question and processing the error code

Windows 2008R2 CA & OpenSSL CSR: Error parsing CSR ASN1 bad value met

纵饮孤独 提交于 2019-12-13 16:32:56
问题 I am using the OpenSSL C API to build a CSR. The code is as follows: static void seedPRNG() { const int openSSLseedsize = 128; uint8_t *openSSLseed = NULL; openSSLseed = malloc(openSSLseedsize * sizeof(uint8_t)); //printf("%d\n\n", openSSLseedsize); // random number generator SecRandomCopyBytes(kSecRandomDefault, openSSLseedsize, openSSLseed); for (unsigned i = 0; i < openSSLseedsize; i++) { printf("%d", openSSLseed[i]); } printf("\n\n\n\n"); //seed openSSL random RAND_seed(openSSLseed, 128);

Create Certificate and Pass Type ID at runtime

丶灬走出姿态 提交于 2019-12-13 16:31:24
问题 My Passbook-related app was recently rejected based on guideline 23.3: 23.3: Passes must be signed by the entity that will be distributing the pass under its own name, trademark, or brand or the app will be rejected and Passbook credentials may be revoked I had a few questions and got on the phone with someone at Apple. They told me that to remedy my problem I could create a sign-up form in my application. This sign-up form could then be used to create a certificate and pass type ID for the

What is the point of the X509Store Constructor (String)?

回眸只為那壹抹淺笑 提交于 2019-12-13 16:23:23
问题 It seems as though you can set up a valid X509Store object based on any string. eg. $store = New-Object System.Security.Cryptography.X509Certificates.X509Store("abcdef") I originally was using $store = New-Object System.Security.Cryptography.X509Certificates.X509Store("Cert:\CurrentUser\My") thinking I had a valid object for the My store, however I kept getting an exception when calling: $store.Open([System.Security.Cryptography.X509Certificates.OpenFlags]::MaxAllowed) #Exception calling

sudo easy_install for SimpleITK not that easy

為{幸葍}努か 提交于 2019-12-13 15:25:35
问题 So... I've tried several ways to download SimpleITK (pip install) on Python but it's not working at all! (Here: SimpleITK python 2.7.12 installation issue) Now I'm using easy_install and I get this error: Searching for simpleitk Reading https://pypi.python.org/simple/simpleitk/ Download error on https://pypi.python.org/simple/simpleitk/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found! Couldn't find index page for 'simpleitk' (maybe

Docker: Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates

青春壹個敷衍的年華 提交于 2019-12-13 15:24:03
问题 I am having a similar problem. Any direction would help. The "docker-machine -D ssh default" Allows me to login and work the container. but it still bugs me as to why do I see this error? here is some of the extract Copying certs to the local machine directory... Copying certs to the remote machine... Setting Docker configuration on the remote daemon... This machine has been allocated an IP address, but Docker Machine could not reach it successfully. SSH for the machine should still work, but

How to convert byte[] type to Certificate type in java?

一个人想着一个人 提交于 2019-12-13 14:31:00
问题 I've a byte[] of certificate data and I want to change this byte[] type to Certificate type. How can I achieve this? Now I used CertificateFactory.generateCertificate(InputStream inStream) . byte[] csr = getCSR(cn, ou, org, loc, state, country,email); CertificateFactory cf = CertificateFactory.getInstance("X.509"); ByteArrayInputStream bais = new ByteArrayInputStream(csr); Certificate certificate = cf.generateCertificate(bais); But Error occurred Certificate certificate = cf