Questions tagged [https]

HTTPS, an amalgamation of the Hypertext Transfer Protocol and the SSL/TLS protocol, is engineered to ensure encrypted communication and guarantee the secure identification of a web server within a network.

Protecting my HTTP connections

Currently, I am working on my Home Automation project and here is how the setup looks like: An ESP8266 WiFi module will be connected to a variety of sensors. The module will run a light web server while a Linode Cloud will host specific NodeJS scripts a ...

Error in Reactjs in production mode: net::ERR_CERT_COMMON_NAME_INVALID

My Reactjs application is deployed on a Linux server and can be access at I am using PHP APIs to fetch data, which are also hosted on the same server and accessible through However, when trying to fetch data from the API, I receive an error in the consol ...

Ways to preserve the answer that is obtained in the format of application/pdf

I need to save a PDF file locally in nodeJs after making an API call to SmartSheet. You can find the necessary documentation at this link. My concern is how to handle the PDF response and store it on my local machine using the https module. I already kno ...

Try out a secure proxy server in Python

I am currently working with a plethora of HTTPS proxies (proxies that have their own SSL connection). To simplify the process, I am developing a python diagnostic tool that aims to connect to a particular page through each proxy and send me an email if any ...

Facing an ERR_SSL_PROTOCOL_ERROR while working with Heroku, Node.js, Express, and SSL encryption

Lately, I activated SSL for my website hosted on Heroku, wildcodemonkey.com, but Chrome shows me the error "ERR_SSL_PROTOCOL_ERROR" whenever I try to access it. From what I've gathered, the SSL connection ends at Heroku's router, which then forw ...

What is the process for opening both an HTTP and an HTTPS port on a Create-React-App application?

Currently, my project is built using React along with Create-React-App. I have come across information online stating that Create-React-App only opens one unique PORT. This has prompted the question of whether it is possible to open two different ports f ...

Certification could not be validated (grpc/node)

As I delve into this tutorial for guidance, my aim is to successfully execute the node example. After downloading the folder and navigating to the directory, I attempted running npm install. Here is the stack trace that was generated. npm WARN package.j ...

Secure HTTPS response cannot be established due to an insecure response (error code: net::ERR_IN

Encountering the error message 'net::ERR_INSECURE_RESPONSE' (receiving HTTP instead of HTTPS) when accessing my HTTPS API. The documentation provided by Express appears to be lacking in this area. Is there something fundamental that I am overlooking? I wa ...

Tips for avoiding HTTPS issues when communicating between Apache and Node Express servers

Recently, I repurposed an old laptop to run Ubuntu Server 18.04 and gave it a fixed IP address of 192.168.0.36 on my local network for easy SSH access from my main machine. This laptop is hosting a website written in React using the Apache server (built w ...

Using jQuery AJAX enforces the use of HTTPS

Here is the current setup: Using jquery version 2.1.1 Employing nodejs (not a crucial factor) Making requests over https The issue at hand: When using $.getJSON() and $.get(), the URL requested appears as "". Despite confirming the correctness of the UR ...

Serve static content securely using HTTPS

Having trouble finding an example of implementing Node.js with Express for serving static content over HTTPS? You're not alone. While there are plenty of resources on using Express with HTTPS and serving a static directory separately, combining all three s ...

Creating a secure Node.js server using `https.js` is a great way to ensure the safety of

Currently in the process of setting up a secure server for my node.js application by utilizing the https.js NPM module. app.js: var http = require('https'), fs = require('fs'); var cert = { key: fs.readFileSync('/opt ...

There was a hiccup during the SSL/TLS handshake process that caused an issue

Recently, I've encountered issues on my development server where cURL seems to be working flawlessly with HTTP requests but malfunctions when it comes to HTTPS requests—even when trying the same resource using different protocols (I tested by reques ...

The REST Client is reporting back with an HTTP status code of 401

Thank you for taking the time to read this! Overview: I have developed a JAVA REST client that authenticates with a username and password, returning a JSON response. Issue: I am encountering the following exception: Error in thread "main" java.io.IOExc ...

What could be causing the issue with res.download() function not functioning properly while passing a file path?

Hey there! I'm working on a cool project that involves allowing users to input a file path and then download it. I've set up a form with a text input field for the path, and am using Node.js and Express router to handle both the get and post requ ...

Ways to Retrieve Body Content from an HTTPS URL Using CURL

Is there a way to modify the following code to retrieve the body content of a URL using PHP's CURL, specifically for HTTP and not HTTPS? I need to access the data returned, not just the header information. Any suggestions or guidance would be greatly ...

Retrieving information from a JSON object that includes arrays

I've been researching how to extract data from the response body of a server, but I haven't had much luck finding a solution that works for my https request returning a JSON object. //Initiate the request: request({ //Specify the request method: met ...

Executing a mocked form-data POST request in an express application

I have configured my express to act as a proxy, where every time I access /speise, I want express to automatically make a POST request to a specific website with form data in the body. Here is the exact request I need express to execute: https://i.stack.im ...

Creating a Vue JS project that utilizes both HTTP and HTTPS URLs for improved security

I'm currently utilizing Vue JS with the webpack template and dev mode. I have a question regarding how to configure my server to allow for both HTTPS and HTTP protocols simultaneously. I understand that enabling HTTPS can be done by simply adding "ht ...

retrieve the JSON information from a secure website using HTTPS

Is there a way to retrieve JSON data from an external webpage and incorporate it into my Xpages? The external website uses the https protocol. I'm unable to use: var http_request = new XMLHttpRequest(); http_request.open("GET","XX"); If anyone has any ...

Exploring the Overhead of Setting Up an HTTPS Connection

I am currently designing a web-based chat application that requires an AJAX request for every message sent or received. I want to ensure that the data is encrypted, and I am considering using HTTPS with long-polling for this purpose. Given the higher freq ...

Node.js: step-by-step guide for sending secure HTTPS requests to an application with a self-signed certificate

I currently have two Node.js applications accessible through HTTPS. Both services are using self-signed certificates, and manual access to them works with the usual security warnings. However, I am facing an issue where one application cannot communicate w ...

Setting up a Node.js application with Nginx on DigitalOcean

While running my application on a DigitalOcean droplet using nginx, I encountered a peculiar issue. The app runs perfectly fine with http, but when switching to https, nginx throws a 502 BAD GATEWAY error. Despite trying various DigitalOcean guides and sco ...

Ensuring SSL for both my domain and subdomains: A step-by-step guide

How can I ensure that my domain and subdomain have SSL and WWW? Your assistance is appreciated. I've implemented the following code to enforce SSL and WWW under most circumstances, but not in the exceptions listed below: redirects to redirects to Re ...

Fastify route handler failing to start after onRequest hook is executed

I am currently working on a fastify application that needs to capture the raw body of post requests for authentication purposes. After extensive research, I discovered that fastify does not have native support for this feature. The solutions I found online ...

Ways to verify and incorporate https:// in a URL for a MEAN Stack application

When extracting the URL from API data, my code looks like this: <div class="row copy-text"> <a href="{{copy.Url}}" target="_blank" style="text-decoration: underline !important;">{{copy.Title}}</a> </div> I am interested in ve ...

Transitioning to HTTPS for a stationary React application hosted on the Google App Engine

I have a nodejs app hosted in GAE flexible environment. We've successfully set up the google-managed SSL and the https route is working as expected. However, due to serving the application statically, we are facing challenges in enforcing a redirect ...

Executing Tasks with Google Assistant on an App Using Dialogflow and Node.js on a Locally Hosted HTTPS Server (MalformedResponse: Mistake in Webhook, code

I have developed an app on Google Actions using Dialogflow and Node.js. Initially, it was hosted on Heroku server but now I want to host it on my own server with HTTPS. While the app functions properly on Heroku server, it is not working on my server and ...

What is the best way to configure a Next.js API route to make a fetch request to an ASP.NET Core API without encountering issues with self-signed certificates?

I am currently in the process of developing a nextjs app that utilizes a .NET core api as its backend. To handle server-side authentication data and obfuscate endpoints, I am using nextjs' built-in api routes as a proxy to the backend. However, I hav ...

Guide on Sending a POST Request via HTTPS in Websites

I am developing a browser extension for Chrome that requires sending a post request to a server using standard HTTP. However, this is causing a mixed content error when I'm on a website that uses HTTPS, and the browser refuses to process my request. Error ...

I am required to deliver a certificate to a secure HTTPS web address

I need to utilize a third-party API that necessitates sending a signed HTTPS request from my NodeJS express web server. The process involves using a specific certificate provided by the API. Unfortunately, I am facing some challenges with this integration ...

Switching from the HTTPS to HTTP scheme in Angular 2 HTTP Service

I encountered the following issue: While using my Angular service to retrieve data from a PHP script, the browser or Angular itself switches from HTTPS to HTTP. Since my site is loaded over HTTPS with HSTS, the AJAX request gets blocked as mixed content. ...

What is the reason behind the timeout of an API request made to a local installation of Gitea?

I'm currently facing an issue while migrating a private github repository to my locally installed instance of Gitea. In order to accomplish this, I've set up a Docker container on a NAS in my home. Initially, I attempted to use the built-in migration featu ...

What is the most efficient method for incorporating fonts.googleapis.com into CSS files for use on both HTTP and HTTPS pages?

My website functions correctly when accessed through URLs that start with either http:// or default to the http protocol if not specified. However, an error occurs stating that the main.css file cannot be found when the URL begins with https://. The lates ...

The functionality of ExpressJS is limited when it comes to serving static files over a secure HTTPS

I've encountered an unusual issue with my ExpressJS application. After adding an HTTPS server, everything seems to be running smoothly except for one problem. Certain images that are fetched from a folder located outside of the application directory ( ...

Heroku, Express, React, and NodeJS - struggling with HTTPS inconsistency issue

I'm facing an issue with my express routes not working properly when deployed on Heroku. The odd thing is that the routes work fine when accessed via HTTP, but not via HTTPS. Interestingly, they do work on HTTPS with Internet Explorer and Microsoft Edge, b ...

Setting up secure https for a node.js server in a Docker container on an AWS EC2 instance involves several steps. Let

I have a dockerized node.js/express application up and running on an AWS EC2 instance container. Currently, the app is accessible via a domain name hosted by AWS Route 53 using the HTTP protocol. I am now looking to configure HTTPS for my node.js server th ...

Can you explain the distinction between incorporating the Express GET method and HTTPS GET method in the provided code snippet?

const express = require("express"); const app = express(); const https = require("https"); app.get("/", function (req, res){ var url = "https://example.com"; https.get(url, function(response){ ...

Developing secure web applications using Node.js and Express with HTTPS encryption

I am attempting to utilize express with node.js using https. Below is the relevant code for this segment: var express = require("express"); var app = express(); var https = require('https'); var privateKey = fs.readFileSync('./sslcert/myke ...

What are the steps for transitioning a HTTP stream to HTTPS?

Currently, my website operates on HTTPS through a public hoster and is connected to a Raspberry PI running a node server. In the same network as the PI, there is a hardware component (referred to as decoder) that transmits a data stream via TCP. The purpo ...

Configuring multiple HTTPS servers to listen on a single port in Node.js

By neglecting to specify a protocol, the code snippet below will establish an HTTPS server utilizing TLS 1.2: var options = { key: fs.readFileSync("security/server.key"), cert: fs.readFileSync("security/server.crt") }; https.createServer(options, ...

Can JSON.parse be used on only a portion of an object in JavaScript?

Currently, I am facing an issue with a lengthy JSON file that I am fetching from a URL using https.request. Upon attempting to parse the string with JSON.parse, I encounter an "Unexpected end of JSON input" error. It appears that there is a limit to the ...

Trouble with Traefik's HTTPS redirection functionality

I am encountering an issue with my docker-compose setup using traefik 1.7 as a proxy for my Next.js website. Despite having successfully configured similar setups for other applications, I am unable to achieve http to https redirection on this particular w ...

Implementing virtual hosts and HTTPS encryption

Is it possible to configure vhosts on Express with https? This is my current code without SSL: var express = require('express'); var vhost = require('vhost'); var path = require('path'); var appOne = express(); var appTwo = express(); var appVhosts = mod ...

Tips for utilizing a private GitLab repository as an npm dependency with a private token via https

I am attempting to incorporate a private GitLab repository as an npm dependency in my node.js application using a private token key. My configuration looks something like this: "dependencies": { "my-module": "git+https://<privateToken>:x-oauth- ...

How can we determine through programming if the connection is using HTTP or HTTPS?

Is there a way to programmatically redirect users from http://mysite to https://mysite on my site using PHP? ...

"Exploring the capabilities of React Native with an Https Agent

Can the HTTPS Agent be used in a React Native app? This is my current code: import axios from 'axios'; import ip from './ip'; import https from 'https'; const httpsAgent = new https.Agent({rejectUnauthorized: false}); const api = axios.create({ ba ...

Switching from HTTP to HTTPS with Express and Heroku

Despite Heroku's suggestion to use NPM packages, I've had no luck finding one that successfully forces SSL for express apps. The only solution that seems to work is the following, but it angers Google. Question: Can anyone provide a reliable method in 202 ...

Monitoring Vue for ongoing HTTP requests

Upon mounting a component, it initiates 4 HTTP requests (using Axios) to fetch the necessary data. Is there a method to monitor for any outstanding HTTP requests? To simplify: Are there any pending HTTP requests? yes -> Loading=true no -> Loading ...

Error message: The Javascript Electron app is unable to find the node-fetch module when

Below is the code snippet from my gate.html file: <html> <head> <meta http-equiv='Content-Security-Policy' content='default-src 'self'; https://example.com.tr/validkeys.txt'> <meta http-equiv='Content-Security-Policy' content ...

Having difficulty utilizing the express.session module in conjunction with HTTPS

I need to implement authentication and session creation on a HTTPS static website using expressjs. Here is the code snippet: app.js: // Set up the https server var express = require('express'); var https = require('https'); var http ...

Tips for organizing PHP includes content to be compatible with non-secure (http://) and secure (https://) environments, as well as across various directories

I am working on a footer file that contains various links and images. This footer is utilized on the main homepage of my website, as well as in different directories. It is also used on the secure section of the site (https://) after a user logs in. I am ...

Guide on how to change a Next.js app deployed on Heroku to use HTTPS instead of HTTP?

I have a Next.js application deployed on Heroku. The app does not have a custom server, and accessing the site directly using the HTTPS URL works without any issues. However, I would like to set up a redirection from the HTTP URL to the HTTPS page for use ...

Issue encountered on IIS 7.x server during deployment with HTTPS

Currently, I am running an Angular + .Net 4.5 fullStack application on IIS V7.5 with Windows Server. To conduct additional tests, I am using multiple instances of the same site with different versions of the application deployed on the same host. Each inst ...

Why am I finding that my NodeJS server hosted on Elastic Beanstalk is unexpectedly receiving HTTPS traffic on port 80?

I have recently developed a simple NodeJS server. var http = require("http"); http.createServer(function (request, response) { response.writeHead(200, {'Content-Type': 'text/plain'}); response.end('Hello World '); }).listen(80); console.log('Serve ...

Require assistance in establishing a secure localhost using Node.js (NPM)

After exploring numerous methods, I have yet to successfully enable HTTPS for my Aurelia application (running via npm start) on Windows 10. If you have a foolproof solution for achieving this, please share it with me. Your help would be greatly welcomed. ...

The function res.write() is used to send data that has been joined

I am currently utilizing an express node server and looking to receive response data in chunks at the client. However, I am encountering a problem where the data is being concatenated. For instance, on the server side, I have a loop that looks like this: ...

Making an Ajax request using HTTPS in an HTTP environment

My website currently utilizes both http and https protocols without impacting the content. It incorporates jQuery ajax calls to populate certain sections of the page. However, I have a preference to transition all ajax calls to https protocol. Despite thi ...

Running a fetch operation in Node results in receiving a status code of 464, while the same

I'm trying to request a URL using fetch in my node application, but the response status is returning as 464 without any responseText or error message. I've searched everywhere for information on this issue with no luck. Interestingly, when I try to acces ...

Angular version 1.0.7: Implementing secure API call using $resource

Our web application, built on Angular 1.0.7, currently communicates with a Rails API that listens on a specific port. In order to enhance security measures, we are planning to migrate to the HTTPS protocol. Is it feasible to automatically detect the protoc ...

Setting up an SSL certificate for an Express application: A step-by-step guide

I am currently trying to set up my Express server in order to pass the SSL certificate and transition from http to https. After going through the Express documentation, I still haven't been able to find a suitable solution. While some suggestions like Let ...

Is it necessary to mandate HTTPS usage for users on load balancers or web servers in terms of HSTS?

My current setup involves: 1.) 1 load balancing server running nginx 2.) 2 web servers powered by express.js on node.js 3.) 1 dedicated database server Hello there! I've been investigating ways to enforce HTTPS usage for my users. After researching var ...

Node.js and Binary.js combined for a safe and secure WebSocket implementation

My current setup involves streaming an mp3 file using Debian Jessie, Apache, Node.js, and Binary.js. Everything works smoothly when using http:// and ws://, but I'm encountering issues when trying to make it work with https:// and wss://. Even though the s ...

Is it possible to make a GET request to a webpage that requires logging in without actually logging in first?

In my recent project, I was tasked with developing an automation script that could log into a website, navigate to a specific page, and download a CSV file. However, I encountered a challenge as the website's security measures prevented me from loggin ...

Delivering a protected, locally hosted NextJS project with numerous subdomains

In the configuration of NextJS' server.js, you can ensure secure self-hosted server by including: https.createServer({ key: fs.readFileSync('./privkey.pem'), cert: fs.readFileSync('./cert.pem'), ca: fs.readFileSync('./ch ...

NextJs/Express Server Encounters Domain HTTPS Request Error

Yesterday, I successfully deployed my website on a VPS. Everything was working fine on the VPS IP until I installed certbot on my domain. Unfortunately, I encountered the following error: Mixed Content: The page at 'https://mydomain.com/' was loaded over H ...

What is the method used by req.secure to verify if an incoming request is intended for a secure server in the realm of HTTPS

app.all('*', function(req, res, next){ console.log('req start: ',req.secure, req.hostname, req.url, app.get('port')); if (req.secure) { return next(); }; res.redirect('https://'+req.hostname+':&apo ...

What are the implications of using subresource integrity with images and other types of media

Subresource integrity is a fantastic method for securely using third-party controlled HTTP-served resources. However, the specification currently only covers the HTMLLinkElement and HTMLScriptElement interfaces: NOTE A future iteration of this spec may i ...

Setting up SSL for my localhost with Node.js proved to be a challenging task

I've recently completed the installation of OpenSSL, generated cert.pem and key.pem files, but am encountering issues running my server with node js and express js. It seems like there may be an error in my keys. How can I troubleshoot and resolve thi ...

"Encountering a 'Your Connection is Not Private' error while using Node

I recently purchased an SSL certificate and encountered an issue with Google Chrome. When I try to access my website, it displays the message 'Your connection is not private NET::ERR_CERT_AUTHORITY_INVALID'. Here are the steps I have taken: const express = ...

What is the best way to parse a JSON stream from a secure https source using perl

I will provide detailed information on the task at hand. My objective is to establish a connection with an https URL that streams JSON data, look for specific keywords using REGEX as the data flows in, extract the matching JSON element, decode it, and the ...

Failed to send POST request via HTTP

When attempting to retrieve staff information such as name and email using GID, I encountered the following error while sending a POST request: Error: write EPROTO 101057795:error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake at WriteWrap.a ...

Efficient Ways to pass information to an Object within a nested function

const http = require('https'); exports.ip = async (req, res) => { const ip = req.body.ip; const ip_list = ip.trim().split(' '); const count = ip_list.length; var execution_count = 0; var success = {}; // **Creating an Object** s ...

"The content" of a post request is always in Unicode

When using a Chrome plugin to make a POST request to a specific server, the "response body" is returned in a correct JSON format. However, if I try to achieve the same with either "request" or "https.request", the returned "body" is in unicode which I am ...

Create a new Error stating that the PFX file or certificate with the private key is not found

I recently created a node.js module, tested it thoroughly, and uploaded it to Github. I then downloaded the zipped version of the module from Github, installed all dependencies, and attempted to run it. However, I encountered this error: Error: Missing PF ...