certificate

Cannot create developer certificate on Mac

橙三吉。 提交于 2020-01-24 12:43:16
问题 This happened overnight. Yesterday I was able to work on my .NET Core we application. Now every time I try to do a dotnet run I get the following error in my cmd line: As you can see, I tried running the suggested commands to create a developer certificate which are dotnet dev-certs https and then dotnet dev-certs https --trust . Running both of them, I get There was an error saving the HTTPS developer certificate to the current user personal certificate store. Before I ran those commands, I

Does HttpWebRequest automatically take care of certificate validation?

荒凉一梦 提交于 2020-01-24 04:56:10
问题 I'm using an HttpWebRequest object to access a web service via an HTTP POST. Part of the requirement is that I: Verify that the URL in the certificate matches the URL I'm posting to Verify that the certificate is valid and trusted Verify that the certificate has not expired Does HttpWebRequest automatically handle that for me? I'd assume that if any of these conditions came up, I'd get the standard "could not establish trust relationship for the SSL/TLS secure channel" exception. 回答1: Yes,

NodeJS unable to read default CAs in ubuntu

别等时光非礼了梦想. 提交于 2020-01-24 04:05:11
问题 On our testing environment we are connecting to another server with SSL signed by our company. Every time connection is made nodejs throws UNABLE_TO_VERIFY_LEAF_SIGNATURE . I have found workarounds by setting rejectUnauthorized: false , but this is not aplicable in our case. The certificates are added to /etc/ssl/certs and tested with the environment variable SSL_CERT_DIR to be either /etc/ssl anb /etc/ssl/certs , but no result. Also, it is not preferable to add somewhere in our files the

How to connect Jenkins and Gieta

隐身守侯 提交于 2020-01-24 00:22:11
问题 I have the problem, that I want to establish a CI/CD Pipeline between my Gitea Repo and Jenkins. So far I created a webhook with the Gitea API to Jenkins. Unfortunatly, when I try to send test packages from Gitea to Jenkins, I get the x509 Error, saying that the Certificates are not valid Delivery: Post https://*************/jenkins: x509: certificate is valid for xxxxxxxxxxxxx, not yyyyyyyyyyyyyyyy On the other Hand I cant add my gitea Server in the Jenkins web UI. If I try to do so, I

Where is the Folder /lib/security from JRE 8 under OS X? [duplicate]

落爺英雄遲暮 提交于 2020-01-23 06:26:27
问题 This question already has answers here : Where is the JRE lib/security directory on Mac OS X? (4 answers) Closed 6 months ago . I'm searching the Folder /lib/security from Java JRE 8 under OS X. Under Windows the fodler is located in the installation directory of java in the subfolder lib\security, for example: C:\Programm Files\Java\JRE_xxx\lib\security. But under OS X (El Capitan) i didn't find this folder. When i install Java JDK is found it inside the JDK install folder, but JRe come with

gitlab-runner x509: certificate signed by unknown authority

风流意气都作罢 提交于 2020-01-23 02:17:10
问题 I'm trying to register a new runner on gitlab following these steps : https://docs.gitlab.com/runner/register/index.html but when I enter the url, token and tags. A error message pops-up saying: ERROR: Registering runner... failed runner=CS-XXX status=couldn't execute POST against https://example.com/api/v4/runners: Post https://example.com/api/v4/runners: x509: certificate signed by unknown authority I'm working on a new server and already installed the gitlab-runner 回答1: you need to use tls

Certificate of sender expired before signature verify

喜夏-厌秋 提交于 2020-01-23 00:41:21
问题 I m working on one project about certificates and digital signatures in Java, but i cant understand following situation. Certificates of sender and receiver of document was valid when signature is created. But in time, when receiver received document, certificate of sender had expired. Is that valid situation, so receiver can normally verify signature, or he cant? One more question. For what is used Non-repudiation key usage? 回答1: A digital signature will remain cryptographically correct even

SSL: How are certificates protected against man in the middle attacks?

僤鯓⒐⒋嵵緔 提交于 2020-01-22 09:25:22
问题 My question is about certificates specifically in ssl but I think the questions should apply to all certificates. I have included the SSL procedure for the sake of clarity. In SSL this is what I understand to be the procedure: 1)Client sends supported crypto algorithms sends client nonce 2) Server chooses (and sends) a symmetric algorithm a public key algorithm a MAC algorithm sends it's certificate sends server nonce 3) Client verifies certificate Extracts public key Generates a pre-master

Drop-in replacement for `urllib2.urlopen` that does cert verification

廉价感情. 提交于 2020-01-21 11:13:25
问题 I use Python's urllib2.urlopen for talking with HTTPS servers, but I now learned on the documentation that "HTTPS requests [using urllib2.urlopen ] do not do any verification of the server’s certificate." This is a big problem for me, because it leaves my servers open to a MITM attack. I want a drop-in replacement for urllib2.urlopen that does cert-verification, so I could bundle it with my code and replace all calls to urllib2.urlopen with calls to the modified urlopen function. Because this

How to get the Certificate Information in Java

浪子不回头ぞ 提交于 2020-01-21 08:42:26
问题 I am trying to get and read a certificate only in Java. What code or examples should I look at to get the certificates of a website. For examples the websites: https://google.com https://www.ssllabs.com/ Do I use the URL class? URL url = new URL("https://google.com"); 回答1: Ok I just found out how I can get the information that I want. public void certInformation(String aURL) throws Exception{ URL destinationURL = new URL(aURL); HttpsURLConnection conn = (HttpsURLConnection) destinationURL