码迷,mamicode.com
首页 > 其他好文 > 详细

使用opencap评估CentOS 6的PCI DSS合规

时间:2018-06-25 18:58:41      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:host   --   dha   rate   code   pen   enc   修改   rhel6   

  • 安装
  • [root@localhost ~]# yum install scap-security-guide -y
    • 修改配置
      如果使用的是 redhat 则可以跳过此步
    [root@localhost ~]# sed -i -e "s#<platform>Red Hat Enterprise Linux 6</platform>#<platform>CentOS 6</platform>##g" /usr/share/xml/scap/ssg/content/ssg-rhel6-cpe-oval.xml
    [root@localhost ~]# sed -i -e "s#cpe:/o:redhat:enterprise_linux:6#cpe:/o:centos:centos:6##g" /usr/share/xml/scap/ssg/content/ssg-rhel6-cpe-oval.xml
    [root@localhost ~]# sed -i -e "s#cpe:/o:redhat:enterprise_linux#cpe:/o:centos:centos##g" /usr/share/xml/scap/ssg/content/ssg-rhel6-xccdf.xml
    • 评估PCI DSS合规的内容

      oscap xccdf eval --results results.xml --profile xccdf_org.ssgproject.content_profile_pci-dss /usr/share/xml/scap/ssg/content/ssg-rhel6-ds.xml
    • 生成HTML的报告
      oscap xccdf generate report --output report.html results.xml

    使用opencap评估CentOS 6的PCI DSS合规

    标签:host   --   dha   rate   code   pen   enc   修改   rhel6   

    原文地址:http://blog.51cto.com/41084/2132580

    (0)
    (0)
       
    举报
    评论 一句话评论(0
    登录后才能评论!
    © 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
    迷上了代码!