gpt4 book ai didi

macos - OS X 如何检查证书是否为签名

转载 作者:太空宇宙 更新时间:2023-11-03 14:14:15 25 4
gpt4 key购买 nike

有没有一种方法可以使用类似于 OpenSSL X509_verify 的 SecureTransport API 检查证书是否由给定的根证书签名?

最佳答案

在 OS X 上,创建和操作证书的 API 是 Certificate, Key, and Trust Services :

Certificate, Key, and Trust Services is a C API for managing certificates, public and private keys, symmetric keys, and trust policies in iOS and OS X. You can use these services in your app to:

  • Create certificates and asymmetric keys
  • Add certificates and keys to keychains, remove them from keychains, and use keys to encrypt and decrypt data
  • Retrieve information about a certificate, such as the private key associated with it, the owner, and so on
  • Convert certificates to and from portable representations
  • Create and manipulate trust policies and evaluate a specific certificate using a specified set of trust policies
  • Add anchor certificates

例如:

关于macos - OS X 如何检查证书是否为签名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23762462/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com