
openssl
文章平均质量分 77
雜貨鋪老闆
这个作者很懒,什么都没留下…
展开
-
使用OpenSSL创建CA颁发证书
创建目录test复制示例配置文件openssl-1.0.1c/apps/openssl.cnf到该目录下修改配置文件openssl.cnf的节[ policy_match ]下将match改为supplied这样原来默认match的几项,在用户的证书签名请求中便无需保持一致否则会提示The countryName field needed to be the same等进入原创 2013-03-12 16:33:11 · 2035 阅读 · 0 评论 -
查看openssl支持的加密算法
~$ openssl versionOpenSSL 1.0.1f 6 Jan 2014~$ openssl ciphers -vECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(256) Mac=AEADECDHE-ECDSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECD原创 2016-12-13 21:55:07 · 15564 阅读 · 1 评论 -
ubuntu 14.04使用easy-rsa创建CA并签发证书
ubuntu 14.04sudo apt-get updatesudo apt-get install easy-rsa原创 2016-12-13 10:25:22 · 5254 阅读 · 0 评论 -
openssl查看证书细节
openssl x509部分命令打印出证书的内容:openssl x509 -in cert.pem -noout -text打印出证书的系列号openssl x509 -in cert.pem -noout -serial打印出证书的拥有者名字openssl x509 -in cert.pem -noout -subject以RFC2253规定的格式打印出证书的拥有者转载 2016-12-01 00:09:13 · 24170 阅读 · 0 评论 -
那些证书相关的玩意儿(SSL,X.509,PEM,DER,CRT,CER,KEY,CSR,P12等)
之前没接触过证书加密的话,对证书相关的这些概念真是感觉挺棘手的,因为一下子来了一大堆新名词,看起来像是另一个领域的东西,而不是我们所熟悉的编程领域的那些东西,起码我个人感觉如此,且很长时间都没怎么搞懂.写这篇文章的目的就是为了理理清这些概念,搞清楚它们的含义及关联,还有一些基本操作.SSLSSL - Secure Sockets Layer,现在应该叫"TLS",但由于习惯问题,我们还是叫转载 2016-11-30 23:46:17 · 622 阅读 · 0 评论 -
配置SecureCRT以SSH公钥方式登录服务器
配置SecureCRT以SSH公钥方式登录服务器1. 配置sshd允许public key登录# vi /etc/ssh/sshd_configPubkeyAuthentication yesAuthorizedKeysFile .ssh/authorized_keys# /etc/init.d/sshd restart # for Linux# /et转载 2016-10-14 00:45:06 · 24625 阅读 · 3 评论 -
常见证书格式和转换
原文地址:http://longkm.blog.163.com/blog/static/116662640200972635221556/ PKCS 全称是 Public-Key Cryptography Standards ,是由 RSA 实验室与其它安全系统开发商为促进公钥密码的发展而制订的一系列标准,PKCS 目前共发布过 15 个标准。 常用的有:PKCS#7 Crypto转载 2013-03-12 16:26:41 · 1990 阅读 · 0 评论 -
openssl库中BIGNUM的使用
随机数加减乘除取模指数 #include #include #include #include void bn_printf(BIGNUM * a, int n){ printf("0x"); BN_print_fp(stdout, a); if (n) printf("\n");}void bn_hex_printf(BI原创 2013-07-31 17:36:08 · 4072 阅读 · 0 评论 -
使用openssl库EVP编程计算md5值
参考openssl中的md5test.c #include #include #include #include #include #include static char *test[] = { "", "a", "abc", "message digest", "abcdefghijklmnopqrstuvwxyz", "ABCD原创 2013-07-30 13:39:36 · 2154 阅读 · 0 评论 -
openssl库中MD算法的使用
MD2MD4MD5 #include #include #include #include #include #include #include static char *s1 = "abc";static int s1_len = 3;char *ret_md2 = "da853b0d3f88d99b30283a69e6ded6bb原创 2013-07-31 13:52:37 · 2159 阅读 · 0 评论 -
使用openssl库EVP编程计算sha256值
参考sha256t.c #include #include #include #include #include static char *s1 = "abc";static char *s2 = "abcdbcde" "cdefdefg" "efghfghi" "ghijhijk" "ijkljklm" "klmnlmno" "mnopnopq"原创 2013-07-30 16:13:08 · 6182 阅读 · 2 评论 -
使用openssl库EVP编程计算sha1值
参考sha1test.c #include #include #include #include #include static char *test[] = { "abc", "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", NULL,};static char *r原创 2013-07-30 14:52:41 · 2760 阅读 · 0 评论 -
openssl库中安全哈希算法的使用
SHASHA1SHA224SHA256SHA384SHA512 #include #include #include #include #include static char *s1 = "abc";static int s1_len = 3;char *ret_sha = "0164b8a914cd2a5e74c4f7ff08原创 2013-07-30 19:48:57 · 2975 阅读 · 2 评论