Makefile.ca-links revision b4039a244b198b66f375ef24839eeaa718afd3bc
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
#
# These CA certs are extracted from the NSS database libnssckbi.so.
# Each CA cert is pointed by a symbolic link. The name of the
# symbolic link file is determined by the "hash" value using
# openssl command. When the NSS database is updated, we will extract
# the CA certs out of it and deliver the new set of CA certs.
#
CASRCDIR = CA-certs
OPENSSL = /usr/bin/openssl
CAFILES = ABAecom_sub.,_Am._Bankers_Assn._Root_CA.pem \
TC_TrustCenter,_Germany,_Class_2_CA.pem \
TC_TrustCenter,_Germany,_Class_3_CA.pem \
IETCCAFILES += $(CAFILES:%=$(ROOTETCCADIR)/%)
$(ROOTETCCADIR)/%: $(CASRCDIR)/%
$(INS.file); \
ROOTCALINK=$(ROOTETCCALINKDIR)/`$(OPENSSL) x509 -noout -hash -in $<`.0; \
$(RM) $$ROOTCALINK; \
$(LN) -s $(CATARGDIR)/$(@F) $$ROOTCALINK