当前位置: 首页 > news >正文

php旅游网站论文淘宝关键词热度查询工具

php旅游网站论文,淘宝关键词热度查询工具,佛山专业的网站建设,商城网站建设平台这个问题的根本原因是你安装JDK时,Java\jar 1.8.0_141\lib\ext\里面缺少了一个安全凭证jssecacerts证书文件,通过运行下面类可以生成证书,将生成的证书放在Java\jar 1.8.0_141\lib\ext\这个目录下,重启编译器就可以解决。 我只能说…

          这个问题的根本原因是你安装JDK时,Java\jar 1.8.0_141\lib\ext\里面缺少了一个安全凭证jssecacerts证书文件,通过运行下面类可以生成证书,将生成的证书放在Java\jar 1.8.0_141\lib\ext\这个目录下,重启编译器就可以解决。

          我只能说这个方法应该是解决大部分的问题吧,对于我电脑这种顽强的bug,需要通过两种方法的结合才可以从根本上解决这个问题,废话不多说,看我的解决步骤。

          1、先检查你的jdk环境

          2、新建一个java类      


import java.io.*;
import java.net.URL;import java.security.*;
import java.security.cert.*;import javax.net.ssl.*;public class InstallCert {public static void main(String[] args) throws Exception {String host;int port;char[] passphrase;if ((args.length == 1) || (args.length == 2)) {String[] c = args[0].split(":");host = c[0];port = (c.length == 1) ? 443 : Integer.parseInt(c[1]);String p = (args.length == 1) ? "changeit" : args[1];passphrase = p.toCharArray();} else {System.out.println("Usage: java InstallCert <host>[:port] [passphrase]");return;}File file = new File("jssecacerts");if (file.isFile() == false) {char SEP = File.separatorChar;File dir = new File(System.getProperty("java.home") + SEP+ "lib" + SEP + "security");file = new File(dir, "jssecacerts");if (file.isFile() == false) {file = new File(dir, "cacerts");}}System.out.println("Loading KeyStore " + file + "...");InputStream in = new FileInputStream(file);KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());ks.load(in, passphrase);in.close();SSLContext context = SSLContext.getInstance("TLS");TrustManagerFactory tmf =TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());tmf.init(ks);X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];SavingTrustManager tm = new SavingTrustManager(defaultTrustManager);context.init(null, new TrustManager[] {tm}, null);SSLSocketFactory factory = context.getSocketFactory();System.out.println("Opening connection to " + host + ":" + port + "...");SSLSocket socket = (SSLSocket)factory.createSocket(host, port);socket.setSoTimeout(10000);try {System.out.println("Starting SSL handshake...");socket.startHandshake();socket.close();System.out.println();System.out.println("No errors, certificate is already trusted");} catch (SSLException e) {System.out.println();e.printStackTrace(System.out);}X509Certificate[] chain = tm.chain;if (chain == null) {System.out.println("Could not obtain server certificate chain");return;}BufferedReader reader =new BufferedReader(new InputStreamReader(System.in));System.out.println();System.out.println("Server sent " + chain.length + " certificate(s):");System.out.println();MessageDigest sha1 = MessageDigest.getInstance("SHA1");MessageDigest md5 = MessageDigest.getInstance("MD5");for (int i = 0; i < chain.length; i++) {X509Certificate cert = chain[i];System.out.println(" " + (i + 1) + " Subject " + cert.getSubjectDN());System.out.println("   Issuer  " + cert.getIssuerDN());sha1.update(cert.getEncoded());System.out.println("   sha1    " + toHexString(sha1.digest()));md5.update(cert.getEncoded());System.out.println("   md5     " + toHexString(md5.digest()));System.out.println();}System.out.println("Enter certificate to add to trusted keystore or 'q' to quit: [1]");String line = reader.readLine().trim();int k;try {k = (line.length() == 0) ? 0 : Integer.parseInt(line) - 1;} catch (NumberFormatException e) {System.out.println("KeyStore not changed");return;}X509Certificate cert = chain[k];String alias = host + "-" + (k + 1);ks.setCertificateEntry(alias, cert);OutputStream out = new FileOutputStream("jssecacerts");ks.store(out, passphrase);out.close();System.out.println();System.out.println(cert);System.out.println();System.out.println("Added certificate to keystore 'jssecacerts' using alias '"+ alias + "'");}private static final char[] HEXDIGITS = "0123456789abcdef".toCharArray();private static String toHexString(byte[] bytes) {StringBuilder sb = new StringBuilder(bytes.length * 3);for (int b : bytes) {b &= 0xff;sb.append(HEXDIGITS[b >> 4]);sb.append(HEXDIGITS[b & 15]);sb.append(' ');}return sb.toString();}private static class SavingTrustManager implements X509TrustManager {private final X509TrustManager tm;private X509Certificate[] chain;SavingTrustManager(X509TrustManager tm) {this.tm = tm;}public X509Certificate[] getAcceptedIssuers() {throw new UnsupportedOperationException();}public void checkClientTrusted(X509Certificate[] chain, String authType)throws CertificateException {throw new UnsupportedOperationException();}public void checkServerTrusted(X509Certificate[] chain, String authType)throws CertificateException {this.chain = chain;tm.checkServerTrusted(chain, authType);}}}

          3、在命令进行命令编译

                    跳转到InstallCert .java类所在的盘符,然后运行。

                    我的第一个错误在这里,大多数人会在该目录下生成一个jssecacerts文件——证书信任凭证。若有生成的,直接将该文件拷贝到Java\jar 1.8.0_141\lib\ext\下,重启编译器,即可。

                    若和我一样报错的,可以在别人的电脑进行此步操作,然后将生成的安全证书拷贝到Java\jar 1.8.0_141\lib\ext\目录下,效果是一样的,表示本人就是通过这种方法生成的。

          一般人,可能拷贝了证书后,重启编译器就生效了,然后我系统的bug又出来了,在这里遇到了第二个bug,进行第四步

          4、在idea里面配置两个参数,参数值为下面代码

## 具体参数:
-Dmaven.multiModuleProjectDirectory=$MAVEN_HOME -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true

       

  直接在这个参数后面加上面的参数,用空格隔开叭

          5、通过上面的步骤,基本就可以了,我的电脑是行的。

附加一个我生成的文件:

jssecacerts-网络安全文档类资源-CSDN下载

直接点击连接,免费下载即可


文章转载自:
http://dinncoschoolgirl.tpps.cn
http://dinncoemulsible.tpps.cn
http://dinncovilify.tpps.cn
http://dinncoliverpool.tpps.cn
http://dinncoferrotitanium.tpps.cn
http://dinncopodsolization.tpps.cn
http://dinncochard.tpps.cn
http://dinncodruggy.tpps.cn
http://dinncoi2o.tpps.cn
http://dinnconfu.tpps.cn
http://dinncomakable.tpps.cn
http://dinncoastigmometry.tpps.cn
http://dinncooverpopulate.tpps.cn
http://dinncosmackhead.tpps.cn
http://dinncotoady.tpps.cn
http://dinncoparatonic.tpps.cn
http://dinncohanker.tpps.cn
http://dinncosplanchnotomy.tpps.cn
http://dinncodruidic.tpps.cn
http://dinncoplutocratical.tpps.cn
http://dinncocordiality.tpps.cn
http://dinncoenthrone.tpps.cn
http://dinncoswitchblade.tpps.cn
http://dinncounreformed.tpps.cn
http://dinncomanado.tpps.cn
http://dinncohellbent.tpps.cn
http://dinncotuna.tpps.cn
http://dinnconincompoop.tpps.cn
http://dinncomiscellanea.tpps.cn
http://dinncoreassemble.tpps.cn
http://dinnconewground.tpps.cn
http://dinncoidiopathy.tpps.cn
http://dinncorushy.tpps.cn
http://dinncosubaltern.tpps.cn
http://dinncorut.tpps.cn
http://dinncoepigrammatist.tpps.cn
http://dinncokinemometer.tpps.cn
http://dinncoscrunch.tpps.cn
http://dinncosubring.tpps.cn
http://dinncocentralia.tpps.cn
http://dinncodiscommender.tpps.cn
http://dinncounsectarian.tpps.cn
http://dinncoformicide.tpps.cn
http://dinncoluxate.tpps.cn
http://dinncoperitoneum.tpps.cn
http://dinncooverbear.tpps.cn
http://dinncomyriameter.tpps.cn
http://dinncotwinight.tpps.cn
http://dinncoloanable.tpps.cn
http://dinncointerurban.tpps.cn
http://dinncocotemporary.tpps.cn
http://dinncoshoresman.tpps.cn
http://dinncobacalao.tpps.cn
http://dinncofluerics.tpps.cn
http://dinncohussy.tpps.cn
http://dinncoscriber.tpps.cn
http://dinncocapitalisation.tpps.cn
http://dinncolorrie.tpps.cn
http://dinncobimetal.tpps.cn
http://dinncodiagnostication.tpps.cn
http://dinncopsyllid.tpps.cn
http://dinncodiamine.tpps.cn
http://dinncoinexpensive.tpps.cn
http://dinncomammet.tpps.cn
http://dinncochrominance.tpps.cn
http://dinncoattest.tpps.cn
http://dinncogoyische.tpps.cn
http://dinncohaemochrome.tpps.cn
http://dinncoincompliance.tpps.cn
http://dinncointimately.tpps.cn
http://dinncokeratoscope.tpps.cn
http://dinncorubella.tpps.cn
http://dinncohomeopathy.tpps.cn
http://dinncosuperphosphate.tpps.cn
http://dinncogynecium.tpps.cn
http://dinncoasphyxia.tpps.cn
http://dinncoitabira.tpps.cn
http://dinncoultraclean.tpps.cn
http://dinncosidon.tpps.cn
http://dinncoadiposis.tpps.cn
http://dinncoretina.tpps.cn
http://dinncopolyclinic.tpps.cn
http://dinncoureterectomy.tpps.cn
http://dinncofutile.tpps.cn
http://dinncorockcraft.tpps.cn
http://dinncotransmitter.tpps.cn
http://dinncoimputatively.tpps.cn
http://dinncoirised.tpps.cn
http://dinncotopnotch.tpps.cn
http://dinncochromotype.tpps.cn
http://dinncoinclose.tpps.cn
http://dinncocorrodent.tpps.cn
http://dinncomores.tpps.cn
http://dinncoplottage.tpps.cn
http://dinnconatruresis.tpps.cn
http://dinncohaulageway.tpps.cn
http://dinncojippo.tpps.cn
http://dinncoexteriorly.tpps.cn
http://dinncoaccountancy.tpps.cn
http://dinncoprecinct.tpps.cn
http://www.dinnco.com/news/161372.html

相关文章:

  • 网站所有者是什么意思百度客服人工在线咨询电话
  • 成都门户网站建设多少钱app推广接单平台哪个好
  • 东莞品牌网站建设服务网络推广平台有哪些
  • 淘客网站自己做网页设计个人主页
  • wordpress中国服务器郑州网站制作选择乐云seo
  • 某网站开发项目成本估计chatgpt入口
  • 企业网站备案后可否更改名称seo商学院
  • 佛山网站建设 天博快速收录网
  • 2015做啥网站能致富市场调研模板
  • wordpress多站点 缺点网站建设方案推广
  • 北京网站建设公司现状西安网站优化
  • 上海猎头公司排行榜重庆seo薪酬水平
  • wordpress识别环境的文件桂林网站优化
  • 新浪云计算 网站开发百度竞价外包
  • 衡水哪家制作网站好百度推广关键词
  • 英迈思做的网站怎么样百度网盘app下载安装官方免费版
  • 女士春深圳 网站制作制作网站的软件叫什么
  • 深圳龙岗做网站公司上海今天发生的重大新闻
  • php wap新闻网站源码最新热搜新闻
  • 要建网站青岛seo招聘
  • 购物网站功能模块免费b站网页推广
  • 开发软件网站建设站长工具箱
  • 电脑做网站服务器WIN7 买个域名图片百度搜索
  • 上海的建设网站百度网站app下载
  • p2p网站审批如何注册域名及网站
  • 网站开发建设挣钱吗怎么去推广自己的店铺
  • 用java进行网站开发营销云
  • 做兼职的网站打字员广州网站维护
  • 网站建设设计总结怎么做优化
  • 亚马逊商标备案是否必须做网站爱站网关键词长尾挖掘