ssl

How to setup basic Jersey/Grizzly 2.21 SSL startup configuration

萝らか妹 提交于 2021-01-28 06:01:39
问题 I'm trying to get a very basic Grizzly server up and running to allow for one-way SSL (HTTPS) connections to access jax-rs REST services. Eventually I want two-way SSL security. I've gone through many of the examples and I just can't get anything to work. I keep running into a SSL Handshake error. Clearly I must be doing something stupid. Any help is appreciated. Here is my code to start my embedded Grizzly server using the Jersey wrapper classes: public static HttpServer startHttpsServer(URI

.net core Kestrel server SSL issue

試著忘記壹切 提交于 2021-01-28 04:50:37
问题 I am having a few problems implementing a basic SSL server using Kestrel on .Net Core. My aim is to eventually create my own Alexa skill end point, which I already have a basic version running on flask on a raspberry pi. But I'm a .net person and really want to leverage what I know and can understand better in .net core on Windows IOT on a Raspberry Pi 3. I followed some very vague tutorials on how to implement an SSL server using Kestrel which I can get up and running except for one issue.

How to setup basic Jersey/Grizzly 2.21 SSL startup configuration

冷暖自知 提交于 2021-01-28 04:07:39
问题 I'm trying to get a very basic Grizzly server up and running to allow for one-way SSL (HTTPS) connections to access jax-rs REST services. Eventually I want two-way SSL security. I've gone through many of the examples and I just can't get anything to work. I keep running into a SSL Handshake error. Clearly I must be doing something stupid. Any help is appreciated. Here is my code to start my embedded Grizzly server using the Jersey wrapper classes: public static HttpServer startHttpsServer(URI

Getting mixed-content errors even though I’m only using https URLs

拥有回忆 提交于 2021-01-28 03:59:42
问题 I'm having the SSL warning messages all over my website after switching to SSL for several assets: Mixed Content: The page at 'https://example.com' was loaded over HTTPS, but requested an insecure script 'http://example.com/script.js'. This request has been blocked; the content must be served over HTTPS. I checked the page source, every single script/css is requested over https. I even checked the dynamically created html by using the code inspector. I disabled Javascript in case a script was

If is not localhost statement htaccess

岁酱吖の 提交于 2021-01-28 03:56:13
问题 i'm currently forcing visitors to access all my websites (mostly Wordpress) over https, witch i do with the following code: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L] Now i was wondering if i can use an if is not statement, so if i work on my local environment, this won't work. For example: <If "%{HTTP_HOST} != 'http://localhost:8888'"> # live configuration </If> <Else> # local configuration </Else> What's the best way to do this?

SSL Connect Error in Curl and Php 5.3.3

本秂侑毒 提交于 2021-01-28 03:54:58
问题 My site worked perfectly since 3 years, with below code, now suddenly since 2 days it started giving below error : SSL Connect error :- in Curl_error Below is my code : <?php $this->ssl_cert = "path_to_my_cert.pem"; $session = curl_init($this->server_url); curl_setopt($session, CURLOPT_HTTPHEADER, $this->request_header); curl_setopt($session, CURLOPT_HEADER, true); curl_setopt($session, CURLOPT_RETURNTRANSFER, true); curl_setopt($session, CURLOPT_TIMEOUT, 300); curl_setopt ($session, CURLOPT

PKCS#11 TLS Authentication

百般思念 提交于 2021-01-28 03:03:47
问题 I am new to PKCS#11 and Common Access Cards but as I understand it, on the card you have the certificates(s) that can be extracted and the private key(s) that can't. I am trying to write an app that communicates with a web server that requires certificates for authentication. The PKCS library provided from the hardware vendor is pretty thin. I can essentially access the certificate object or sign data using the on-card private key. What I am unsure of how I handle the handshake and such when

Getting mixed-content errors even though I’m only using https URLs

断了今生、忘了曾经 提交于 2021-01-28 02:49:59
问题 I'm having the SSL warning messages all over my website after switching to SSL for several assets: Mixed Content: The page at 'https://example.com' was loaded over HTTPS, but requested an insecure script 'http://example.com/script.js'. This request has been blocked; the content must be served over HTTPS. I checked the page source, every single script/css is requested over https. I even checked the dynamically created html by using the code inspector. I disabled Javascript in case a script was

Use of Public key in the certificate signing request ( CSR )

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-28 01:49:19
问题 Public and private-key pair will be generated during the creation of CSR on our server. We will send the CSR and public key to CA by holding private key with us. CA will validate our public key before signing it with private key of CA's root certificate. We are having our own CA team to certify the CSR requests. My queries are as follows: Will CSR itself includes public key or do we need to provide public key separately to CA ? Will CSR be signed by our public key before sending it to CA (or)

Letsencrypt + Docker + Nginx

≯℡__Kan透↙ 提交于 2021-01-28 00:15:29
问题 I am referring this link https://miki725.github.io/docker/crypto/2017/01/29/docker+nginx+letsencrypt.html to enable SSL on my app which is running along with docker. So the problem here is when I run the below command docker run -it --rm \ -v certs:/etc/letsencrypt \ -v certs-data:/data/letsencrypt \ deliverous/certbot \ certonly \ --webroot --webroot-path=/data/letsencrypt \ -d api.mydomain.com It throws an error: Failed authorization procedure. api.mydomain.com (http-01): urn:acme:error