HTTPS and Certificates - Follow up question [closed] - open-source

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
This is a follow up question on my earlier question.
Authentication based on Certificates and IP
I am trying to do this for a very small company, and would like to rely only on open source resources. Please take into consideration the fact that I am absolutely (100%) new to the world of Security certificates and the secure protocol.
a) How can I create SSL certificate for test purpose.
(I can think of using paid ones for the production, but once I complete a working POC on this.)
b) How to install the certificate on the four machines I have access to for the POC. Two of them are Win-XP and other two are Win-7.
c) I don't think the servers I have (tomcat and glassfish) support HTTPS, so are there any known open source solution for that?
d) Further, I would have to find out how to add the certificate, but that very well depends on the server I end up with. Are there any documentation related to this.

To answer your questions in the order that you have asked. Since you did not mention what environment you want to implement the solution I will endevor to make this answer as generic as possible.
To create your own self-signed certificates purely for testing check here. You can use the 'OpenSSL' kit which is available to download.
I am not sure how you can install a self-signed certificate under win XP/Win 7, as they are more likely to reject them as they are not "authorized" nor signed by the Certificate Authority such as Thawte, maybe there is someone there who could properly answer this one, perhaps a registry hack/trick to fool Windows into thinking it is a "genuine" certificate.
Apache is the most well-known open source web-server, it has support for running the HTTPS protocol (usually running off port 443). If you have this Apache running, then a simple tweak to the configuration httpd.conf to get it to run...see this as an example
#LoadModule ssl_module modules/mod_ssl.so
... Further info cut out ...
# Secure (SSL/TLS) connections
#Include conf/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
# starting without SSL on platforms with no /dev/random equivalent
# but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
The line LoadModule above, needs to be uncommented and Apache needs to be restarted in order to re-read the configuration with the changes made to it.. Furthermore, you can get xampp which contains Apache, MySql and Php/Perl stack for Windows. See here for further information on this. If you are running a Linux environment, then a quick check to see if Apache is indeed installed by issuing those two commands below:
ps -elf | grep httpd
ls -l /etc/httpd/httpd.conf
(The first command checks to see if the httpd process is running and the second checks if you have the configuration file present if Apache is installed.
Lastly, adding the certificate is basically dependent on how to add it as I have mentioned in the above that is the answer to your second question.

Related

Simple LAN Base Offline Webpage for keep recording of Data [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I don't have much knowledge about servers or anything this all but have little base knowledge about HTML or LAN Networking.
As i mention in Title. I just want one simple web-page for entry our data, such as call time, location, description, caller and receiver and i know this all can do thru HTML base webpage design but what i want is share that web-page thru LAN (Not Online) for key-in 3-4 persons in different computer. What type of software (Application) i have to use and the setup.
I have a 5 PC Connected with LAN with main PC (normal windows 7 but if need can change as Server also) and i just want Web-Page or HTML Page all data store and share from the Main PC to others workers PC.
Thank You in Advance for your Amazing Answer :)
In order to achieve your goal you need to set up a server environment on your computer. The best way to do it worry free would be to use an already bundled server like XAMPP.
It's very easy to host website on xampp server by following those steps.
Install xampp in your computer/server
Place web pages in xampp servers htdocs folder
To make default path of the server edit configuration of xampp and
submit path of your web folder
Now start apache (and mysql if needed) and try to run localhost/yourwebdirectory
once run without error your server is running fine. You can also run it by using your network IP.
Now check firewall and allow port 80 (If you require database, setup port 3306 as well)
If you ever want to make it public, you can use a no-ip domain and point that to your IP Make sure the firewall allow public access.

Getting DNS_PROBE_FINISHED_BAD_CONFIG error [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I have couple of wifi connections out of which one works fine whereas the other one only works for some of the websites and services like google.com & skype. Browsing rest of many websites usually gives me that error:
DNS_PROBE_FINISHED_BAD_CONFIG
I rarely get following errors as well:
DNS_PROBE_FINISHED_NO_INTERNET
DNS_PROBE_FINISHED_NXDOMAIN
Another very strange thing that I experienced is that repeatedly refreshing a page often opens it whereas it doesn't apply at every web page.
I found many solutions as an outcome of long searches at Google & Stack Overflow but none of these worked. This is not a browser particular issue as getting the same issue on all the browsers I've (i.e. Chrome, Mozilla & IE). I'm getting the same issue at my official machine with Ubuntu OS & personal machine with Win10 OS. Meanwhile I've no problem with web surfing at my mobile and other PCs connected with the same connection.
Detailed information about the real cause and solution (preferably for both Ubuntu & Win10) will be highly appreciable.
For Ubuntu
These errors indicate that there is some problem with DNS.
check cat /etc/resolv.conf for your DNS settings.
And add following name server in /etc/resolv.conf for temporary or in /etc/resolvconf/resolv.conf.d/head for permanent
nameserver 8.8.8.8
nameserver 8.8.4.4
To add these two name server address in resolv.conf
run command sudo gedit /etc/resolv.conf
Copy above two line of nameserver paste on last line of resolv.conf
Ctrl+S to save.
Note: If you add name server only /etc/resolv.conf then when computer is restarted then /etc/resolv.conf is in previous stage.
So, to store these nameservers permanently, use following method :
run command sudo gedit /etc/resolvconf/resolv.conf.d/head
Copy above two lines of nameserver and paste on last line of /etc/resolvconf/resolv.conf.d/head
Ctrl+S to save.
Re-connect internet connection
More Detail On https://wiki.archlinux.org/index.php/Network_Debugging#DNS_Servers
For Windows:
Add these DNS ip on network configuration
Tutorial to add DNS in windows is here
https://www.opennicproject.org/configure-your-dns/how-to-change-dns-servers-in-windows-7/
Re-connect internet connection
Open your cmd and put below two commands
ipconfig /release
ipconfig /renew
Now open run and type ncpa.cpl and press enter .
after that on your ipv4 settings you to set below dns on there
8.8.8.8
8.8.4.4
Tuitorial : https://tricksmotion.com/how-to-fix-dns_probe_finished_bad_config-problem-in-google-chrome-tricksmotion/
I am using kali linux. I came across so many ways which all failed to work but one.
In the terminal, type:-
sudo apt-get purge resolvconf
A GUI appears, click okay. Reboot your machine. You should be able to access the internet once it starts.

MAMP Pro problems launching SQL Server after system clean [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I've been building a Wordpress Multiuser site for the last two months. Everything was good:
Had a local configuration saved in MAMP using default ports (was FTP accessible) Which means I had to edit etc/host and point to site root on drive
Had it saved MAMP's folder structure
Could toggle between default ports and MAMP ports for other sites in development
After the cleaning, MAMP Pro would crash at firing up the SQL Server.
I was able to fix the crash by going into terminal and modifying a line. The last line had my IP address and null just after it. So once I added wordpress.mu, or localhost, the server would start.
But to no avail. I can't seem to recall the configuration after I've tampered with my MAMP settings.
I believe I set an alias and named one of the hosts as wordpress.mu.
I had MAMP pointing to a folder with a different title.
The alias was local host.
And (when testing the site), I would type: localhost.localdomain/sitetitle. This is no longer working.
Can someone point me to thorough instructions or shoot me a few tips on what I should check on? While it might be an easy fix (at least I'm hoping) it's gotten a bit over my head as I am just exhausted from researching possible solutions to problems I semi-understand.
Thanks in advance community, pals, and web scientists. I'd love to treat whomever helps me successfully to a starbucks card. :)
I'm not using the Pro version, so I may a little off base here, but I'd check the following..
Does the MAMP homepage work? (http://localhost:8888/MAMP/?language=English)
Do you need to edit Apache's config? (httpd.conf) You might not need to when using MAMP Pro.
Is MySQL failing to start because there's already an instance running (look for a process called mysqld in Activity Monitor)?
Do you have a hosts entry for localhost.localdomain pointing to 127.0.0.1?

How to allow self signed cert in Mercurial through server configuration?

I've read similiar questions here and elsewhere. This is not intended to be a duplicate, but I haven't found the answer.
I'm trying to ask a very particular question, so please don't mark this as duplicate unless you can point me somewhere with a very specific correct answer.
I'm running CentOS 6 and I have Mercurial 1.9 installed as our Mercurial Server.
I can add repositories and and I can clone, and commit changes, and push back to the server with no problems as long as I don't try to use SSL.
The apache website is configured with a self signed SSL cert (I am aware of the pros and cons around self signed SSL certs, but we have made the decision to use one unless it is technically impossible).
Our client machines are Windows 7 with TortoiseHG 2.1.4 installed. In Visual Studio 2010 I'm using "Mercurial Source Control Package".
What I would like to do, is make a server configuration change that would either on a server level or repository level allow a self signed certificate.
Per client machine changes are burdensom because even after I update everyones machine, next time I have to setup a new client I have to have these changes documented and remember to go back through the steps.
I've tried the hostfingerprints option but I haven't been able to get it to work. I'm not sure if this is supposed to work as a server configuration or if I'm putting the setting in the correct file or what.
As a side note, I finally found how to turn on --insecure through the TortoiseHG UI (clicking the lock icon), but it looks like the visual studio source control provider doesn't have an option (at least that I can find).
I'm not a Linux expert (but I have access to experts if needed) so please be verbose in your explanations.
Everyone in our organization is an HG novise.
As a last resort, we may just get an SSL cert.
Jamie F is correct, but I'll put it down here since s/he didn't. There is nothing a server can do to tell a client to trust it -- there would be little point in that. You need to either configure your clients or use a certificate signed by a CA that your client systems already trust.

SQL Replication, CE device [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a Windows CE device that I'd like to replicate data to a SQL Server 2008 R2 database. I understand the basics of replication and I need to use MSDN's "Two-Server Topology". Where there is an IIS box and a separate SQL Server box.
I have replication and a publication set up on the SQL database. Also, on the IIS box I created a virtual directory and via UNC have the physical folder on the database box. So the virtual dir path on the IIS box looks something like "\databasebox\c$\Replications". I set up a user on both boxes and am able to test the connection successfully.
I'm able to browse to the virtual directory from the device via a path such as: "https://www.mydomain.com/Replications" and with directory browsing turned on I can see the sqlcesa35.dll.
The issue is adding the subscription. Using the Web Synchronization Wizard, I cannot complete the process. I get to the point where I'm configuring the existing virtual directory. Choose it and get an error "ConnWiz - The local path is not in the correct format". If I use the wizard to create a new virtual dir and get tot he point of adding the remote directory UNC it does not allow it.
I've tried mapped drives, not allowed. This has to be possible, its part of Microsoft's "Two-Server Topology".
How do I create a replication subscription on IIS box-1 where the virtual directory points to a folder on box-2?
The problem you are facing is related to IIS 7&8 support of Web Synchronization wizard. According to this MSDN article "The Configure Web Synchronization Wizard is not supported on IIS 7.0.". What you need is to do manual configuration of IIS for Web Synchronization. You can find the steps to do that here.