zoukankan      html  css  js  c++  java
  • https centos6 and 7

    keytool -printcert -sslserver 10.10.192.90:8443 -rfc >nexus.crt

    通过  openssl 将 证书转换为 .pem格式的

    通过以下命令, 转换为  .pem格式

    openssl   x509   -in   a.cer   -out   a.pem   

    openssl version -d 

    get the directory, add the content to the tail of the files.

    • AIX, OpenSSL 0.9.6 (from OpenSSH support packages) /var/ssl/
    • Centos 3 / 4, OpenSSL 0.9.7 /usr/share/ssl/
    • Cygwin, OpenSSL 0.9.6 /usr/ssl/
    • Debian Woody (3.0), OpenSSL 0.9.6 /etc/ssl/
    • Debian Sarge (3.1), OpenSSL 0.9.7 /etc/ssl/
    • Debian Etch (4.0), OpenSSL 0.9.8 /etc/ssl/
    • Debian Lenny (5.0), OpenSSL 0.9.8 /etc/ssl/
    • Debian Squeeze (6.0), OpenSSL 0.9.8o /etc/ssl/
    • FreeBSD, OpenSSL 0.9.8 /etc/ssl/
    • FreeBSD, OpenSSL 0.9.x (custom complile) /usr/local/openssl/
    • Gentoo, OpenSSL 0.9.6 /usr/lib/ssl/
    • Gentoo, OpenSSL 0.9.7 /etc/ssl/
    • Mac OS X 10.1.2, OpenSSL 0.9.6b /System/Library/OpenSSL/
    • Mandrake 7.1 -> 8.2, OpenSSL 0.9.6 /usr/lib/ssl/
    • NetBSD, OpenSSL 0.9.x /etc/openssl/
    • Nokia N900 Maemo 5, OpenSSL 0.9.8n /etc/ssl/
    • Normal OpenSSL Tarball Build, OpenSSL 0.9.6 /usr/local/ssl/
    • OpenBSD, OpenSSL 0.9.x /etc/ssl/
    • Redhat 6.2 / 7.x / 8.0 / 9, OpenSSL 0.9.6 /usr/share/ssl/
    • Redhat Enterprise 3 / 4, OpenSSL 0.9.7 /usr/share/ssl/
    • Redhat Enterprise 6, OpenSSL 1.0.0 /etc/pki/tls/
    • Redhat Fedora Core 2 / 3, OpenSSL 0.9.7 /usr/share/ssl/
    • Redhat Fedora Core 4, OpenSSL 0.9.7 /etc/pki/tls/
    • Redhat Fedora Core 5 / 6, OpenSSL 0.9.8 /etc/pki/tls/
    • Slackware, OpenSSL 0.9.6 /etc/ssl/
    • SuSE 7.3 / 8.0, OpenSSL 0.9.6 /usr/share/ssl/
    • SuSE 8.1 / 8.2, OpenSSL 0.9.6 /etc/ssl/
    • Ubuntu Maverick (10.10), OpenSSL 0.9.8o /etc/ssl/
    • Ubuntu Precise (12.04), OpenSSL 1.0.1 /etc/ssl/

     centos
    ---
    Install the ca-certificates package:

    yum install ca-certificates

    Enable the dynamic CA configuration feature:

    update-ca-trust enable

    Add it as a new file to /etc/pki/ca-trust/source/anchors/:

    cp foo.crt /etc/pki/ca-trust/source/anchors/

    Use command:

    update-ca-trust extract 

  • 相关阅读:
    【YbtOJ#20238】最优路线
    【洛谷P3247】最小公倍数
    【洛谷P3261】城池攻占
    【YbtOJ#20236】红点蓝点
    【YbtOJ#20235】公共序列
    Wing IDE 4.1使用笔记一修正一下框框字体显示不了中文
    飘逸的python
    The 12th tip of DB Query Analyzer, powerful in text file process
    PHP网站如何解决大流量与高并发的问题
    【python】利用sftp及rsa密匙实现远程拷贝文件
  • 原文地址:https://www.cnblogs.com/SZLLQ2000/p/5507978.html
Copyright © 2011-2022 走看看