ssl-certificate

Load certificate to KeyStore (JAVA)

心不动则不痛 提交于 2020-01-06 07:45:16
问题 I have problem with loading certifiacate to key store. I can create that certificate in console with this command openssl pkcs12 -export -out cloudCA.p12 -inkey Cloud\ privateLey.key -in cloudCa.pem -certfile rootCa.pem -name "cloudCA" I figured out how to load cloudCA.pem with privateKey.key but I can't find a way how to add there rootCA.pem. This is my current code. Thank 's for help. //Regular patterns for certificate. private static final Pattern CERT_PATTERN = Pattern.compile( "-+BEGIN\

Load certificate to KeyStore (JAVA)

﹥>﹥吖頭↗ 提交于 2020-01-06 07:44:33
问题 I have problem with loading certifiacate to key store. I can create that certificate in console with this command openssl pkcs12 -export -out cloudCA.p12 -inkey Cloud\ privateLey.key -in cloudCa.pem -certfile rootCa.pem -name "cloudCA" I figured out how to load cloudCA.pem with privateKey.key but I can't find a way how to add there rootCA.pem. This is my current code. Thank 's for help. //Regular patterns for certificate. private static final Pattern CERT_PATTERN = Pattern.compile( "-+BEGIN\

Allowing Untrusted SSL Certificates with Opera browser. Selenium testing (Java)

眉间皱痕 提交于 2020-01-06 07:26:13
问题 How can I allow by Selenium WebDriver to accept untrusted certificate on Opera browser ? I try to use this code. No positive results DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true); WebDriver driver = new OperaDriver(capabilities); 回答1: Make a custom profile for your opera browser and then set the capability DesiredCapabilities capabilities = DesiredCapabilities.opera(); capabilities.setCapability("opera.profile",

Allowing Untrusted SSL Certificates with Opera browser. Selenium testing (Java)

血红的双手。 提交于 2020-01-06 07:26:07
问题 How can I allow by Selenium WebDriver to accept untrusted certificate on Opera browser ? I try to use this code. No positive results DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true); WebDriver driver = new OperaDriver(capabilities); 回答1: Make a custom profile for your opera browser and then set the capability DesiredCapabilities capabilities = DesiredCapabilities.opera(); capabilities.setCapability("opera.profile",

Mongodb x.509 'No verified subject name available from client'

耗尽温柔 提交于 2020-01-06 07:25:26
问题 I have the following issue: I run mongobd with the following config file # mongod.conf # for documentation of all options, see: # http://docs.mongodb.org/manual/reference/configuration-options/ # Where and how to store data. storage: dbPath: /var/lib/mongodb journal: enabled: true # engine: # mmapv1: # wiredTiger: # where to write logging data. systemLog: # destination: file # path: /var/log/mongodb/mongod.log logAppend: true # network interfaces net: port: 27017 bindIp: 127.0.0.1 ssl: mode:

What changes require in LEMP stack for session handling over HTTPS with AWS Certificate Manager (ACM) and EC2 server running behind ELB?

我的梦境 提交于 2020-01-06 05:45:06
问题 I came to know I can use AWS Certificate Manager(ACM) to get wild card SSL i.e. *.example.com. SSL certificate created in ACM can be used on EC2 running behind AWS ELB. The problem occurs when there is request from AWS ELB from port 443 to EC2 on port 80, URL in browser still on HTTPS, internal PHP is running on HTTP(not listening in nginx config to 443), so session is not valid, and the application logout flow occurs and session is not valid. I have no idea how to resolve this, or how I can

Convert .der to .pem using OpenSSL-Net

戏子无情 提交于 2020-01-05 17:40:53
问题 I have a .der certificate that is binary encoded which needs to be converted to a .pem file programatically in .net This line gives the correct output using OpenSSL on OSX: openssl x509 -inform der -in cert.crt -out cert.pem But we need to do the same in .net We have tried many solutions but are completely stuck. Would something like this work: var oc = OpenSSL.X509.X509Certificate.FromDER(bio); Any advice very welcome :) 回答1: In the end we were able to use this to import the DER into a

SSLPeerUnverifiedException During attempted upload

两盒软妹~` 提交于 2020-01-05 08:54:13
问题 When attempting a file upload to an Alfresco Server using ssl the server logs show no errors. The below error can be pulled from the clients logs. javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated Certificates have been checked, and are valid. From this error is it possible to tell if the error is occuring on the server or client side of the ssl handshake? I would assume that it is client side since the server shows no log entries but am not confident in my answer. Could it be

Python requests equivalent of '--proxy-header' in curl with SSL certification

我怕爱的太早我们不能终老 提交于 2020-01-05 05:47:06
问题 Reference: How does one specify the equivalent of `--proxy-headers` curl argument into requests? I am a newbie vis-a-vis Python. I have a requirement, where a request to a destination(webpage) must go through a proxy server. I need to pass headers to the "Proxy server" (same as --proxy-header of curl) Need to add an SSL certificate (a '.cer' file) to read the passed headers to the proxy server(a 'Man In the Middle' scenario) on CONNECT . The curl equivalent of my requirement is as follows:

SSL is not working in nopcommerce

寵の児 提交于 2020-01-05 05:33:16
问题 I have website www.perfecthomehealth.com on landing page i can see the proper secure (https) but when i move to another page like category or other Product page i am not able to see the secure. Can you guide me what is the missing and what i need to change in setting? 回答1: First you need to enable the SSL from Store setting hope you have already did. Then you have to enable "Force SSL for all site pages" from general setting. You must have the SSL certificate at server if not then your cart