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

https centos6 and 7的更多相关文章

  1. Centos6 下安装Nginx+Mysql+PHP

    安装nginx https://segmentfault.com/a/1190000007928556 添加源 $ wget http://nginx.org/packages/centos/6/no ...

  2. Centos6.8下yum安装python2.7

    下载 ius-release.rpm包 wget https://centos6.iuscommunity.org/ius-release.rpm 安装ius-release.rpm包 rpm -Uv ...

  3. 在centos6.5上升级php-libxml版本到2.9.0

    当前系统,软件版本说明: php libxml glibc 2.12 zlib xz-libs 需求: 应开发的需求,线上环境,php-libxml版本升级到2.8以上. 升级步骤:1.安装工具集 y ...

  4. 阿里云ECS安装lnmp环境-转载自:http://ninghao.net/blog/1368

    远程控制你的服务器 远程控制 Linux 类型的系统的服务器,比如 CentOS 系统的服务器,一般不像 Windows 服务器那样,使用图形界面的远程控制.我们需要使用命令行工具,远程连接到服务器, ...

  5. CentOS install duplicity

    yum -y updateyum -y install epel-releaseyum -y install ncftp screen # Compilers and related tools:yu ...

  6. 为Linux配置常用源:epel和IUS

    CentOS上,除了os类的yum源,还需要配置几个常用的源:epel.ius. 有很多国内很多镜像站点都提供了各类仓库的镜像站点,个人感觉比较全的是阿里云http://mirrors.aliyun. ...

  7. CentOS扩展库配置

    背景:经常用到第三方的库,通过yum命令查询不到.例如:yum search ilbcWarning: No matches found for: ilbc 不要感叹,CentOS没你想象的支持力度那 ...

  8. 一键安装 zabbix 3.0 版本 脚本

    原文地址: http://blog.csdn.net/u012449196/article/details/53859068 本文修改了原文中的部分错误,此脚本适用于zabbix 2.0 或 3.0 ...

  9. Linux 下 YUM 安装 PHP 5.5 (及5.6)

    原文链接: http://blog.aboutc.net/linux/50/yum-install-php-on-linux 系统环境: CentOS 6.4 x86_64 Fedora 20 x86 ...

随机推荐

  1. LIS(nlogn) POJ 3903 Stock Exchange

    题目传送门 题意:LIS最长递增子序列 O(nlogn) 分析:设当前最长递增子序列为len,考虑元素a[i]; 若d[len]<a[i],则len++,并使d[len]=a[i]; 否则,在d ...

  2. POJ3321 Apple Tree(DFS序)

    题目,是对一颗树,单点修改.子树查询.典型的dfs序入门题. DFS序可以将一颗树与子树们表示为一个连续的区间,然后用线段树来维护:感觉算是树链剖分的一种吧,和轻重链剖分不同的是这是对子树进行剖分的. ...

  3. mount part中位置的作用

    比如部件A上有个mount part,通过它与部件B装配.mount part与B是通过fixed joint 链接的,所以这个coordinate reference位置就决定了fixed join ...

  4. ural 1434. Buses in Vasyuki

    1434. Buses in Vasyuki Time limit: 3.0 secondMemory limit: 64 MB The Vasyuki University is holding a ...

  5. 2015ACM/ICPC亚洲区长春站 A hdu 5527 Too Rich

    Too Rich Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others)Total ...

  6. 如何修改 SplendidCRM 页脚版权信息

    打开 SplendidCRM 网站中的Web Site\_controls\Copyright.ascx 文件找到这段代码<div id="divFooterCopyright&quo ...

  7. python 代码片段4

    #coding=utf-8 # 任何等于0的数值被认为是False,所有非零的数字被认为True, # 空的容器为False,飞控容器酒味True. download_complete=False p ...

  8. HDU 4632 Palindrome subsequence(DP)

    题目链接 做的我很无奈,当时思路很乱,慌乱之中,起了一个想法,可以做,但是需要优化.尼玛,思路跑偏了,自己挖个坑,封榜之后,才从坑里出来,过的队那么多,开始的时候过的那么快,应该就不是用这种扯淡方法做 ...

  9. RGB

    一,介绍 RGB色彩模式是工业界的一种颜色标准,是通过对红(R).绿(G).蓝(B)三个颜色通道的变化以及它们相互之间的叠加来得到各式各样的颜色的, RGB即是代表红.绿.蓝三个通道的颜色,这个标准几 ...

  10. ERROR 2013 (HY000): Lost connection to MySQL server at 'waiting for initial communication packet', system error: 2

    ERROR (HY000): Lost connection to MySQL server at 'waiting for initial communication packet', system ...