-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detected using Facebook's static analysis tools via a build using Buck.
- Loading branch information
Showing
14 changed files
with
187 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,12 +38,12 @@ | |
* $> rm -r new_certs | ||
* $> COMMIT TO SELENIUM REPO | ||
* </pre> | ||
* | ||
* | ||
* *************************************************************************************** Copyright | ||
* (c) 2012, NeuStar, Inc. All Rights Reserved. | ||
* | ||
* | ||
* In a special exception, Selenium/OpenQA is allowed to use this code under the Apache License 2.0. | ||
* | ||
* | ||
* @author Mark Watson <[email protected]>, Ivan De Marino <[email protected]> | ||
*/ | ||
public class Generator { | ||
|
@@ -62,6 +62,9 @@ public static void main(String[] args) { | |
X509Certificate caCrlCert = null; | ||
try { | ||
caCrlCert = mgr.getSigningCert(); | ||
if (caCrlCert == null) { | ||
throw new IllegalStateException("Unable to obtain signing certificate"); | ||
} | ||
PrivateKey caCrlPrivateKey = mgr.getSigningPrivateKey(); | ||
|
||
crlGen.setIssuerDN(mgr.getSigningCert().getSubjectX500Principal()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ | |
|
||
package org.openqa.selenium.server; | ||
|
||
import com.google.common.base.Preconditions; | ||
|
||
import cybervillains.ca.KeyStoreManager; | ||
|
||
import org.openqa.jetty.http.HttpConnection; | ||
|
@@ -67,7 +69,7 @@ | |
* make proxy requests. | ||
* <p/> | ||
* The HttpTunnel mechanism is also used to implement the CONNECT method. | ||
* | ||
* | ||
* @author Greg Wilkins (gregw) | ||
* @author [email protected] (chained proxy) | ||
* @version $Id: ProxyHandler.java,v 1.34 2005/10/05 13:32:59 gregwilkins Exp $ | ||
|
@@ -641,7 +643,7 @@ protected void wireUpSslWithCyberVilliansCA(String host, SslRelay listener) { | |
new KeyStoreManager(root, "http://127.0.0.1:" + port + | ||
"/selenium-server/sslSupport/blank_crl.pem"); | ||
mgr.getCertificateByHostname(host); | ||
mgr.getKeyStore().deleteEntry(KeyStoreManager._caPrivKeyAlias); | ||
Preconditions.checkNotNull(mgr.getKeyStore()).deleteEntry(KeyStoreManager._caPrivKeyAlias); | ||
mgr.persist(); | ||
|
||
listener.setKeystore(new File(root, "cybervillainsCA.jks").getAbsolutePath()); | ||
|
@@ -670,7 +672,7 @@ protected HttpTunnel newHttpTunnel(HttpResponse response, InetAddress iaddr, | |
|
||
/** | ||
* Is URL Proxied. Method to allow derived handlers to select which URIs are proxied and to where. | ||
* | ||
* | ||
* @param uri The requested URI, which should include a scheme, host and port. | ||
* @return The URL to proxy to, or null if the passed URI should not be proxied. The default | ||
* implementation returns the passed uri if isForbidden() returns true. | ||
|
@@ -688,7 +690,7 @@ protected URL isProxied(URI uri) throws MalformedURLException { | |
|
||
/** | ||
* Is URL Forbidden. | ||
* | ||
* | ||
* @return True if the URL is not forbidden. Calls isForbidden(scheme,host,port,true); | ||
*/ | ||
protected boolean isForbidden(URI uri) { | ||
|
@@ -702,7 +704,7 @@ protected boolean isForbidden(URI uri) { | |
|
||
/** | ||
* Is scheme,host & port Forbidden. | ||
* | ||
* | ||
* @param scheme A scheme that mast be in the proxySchemes StringMap. | ||
* @param host A host that must pass the white and black lists | ||
* @return True if the request to the scheme,host and port is not forbidden. | ||
|
Oops, something went wrong.