Question:
I have identical certdata records and certificates on two ACF2 databases. I replaced one to extend its expiration date. What would be the best way to propagate that change to the second database?
Answer:
Since the certificates are identical on the two systems (other than the validity dates), then it should be ok to delete the certificate on the second system and copy over the updated certificate from first system. This would be the process in detail:
Commands:
On sysa
-------
ACF
EXPORT userid.cert1 DSN('saved.userid.cert1.sysa') FORMAT(PKCS12DER) -
PASSWORD(pkcs12 password)
On sysb
-------
ACF
EXPORT userid.cert1 DSN('saved.userid.cert1.sysb') FORMAT(PKCS12DER) -
PASSWORD(pkcs12 password)
SET PROFILE(USER) DIV(CERTDATA)
DELETE userid.cert1
F ACF2,REBUILD(USR),CLASS(P)
F ACF2,OMVS(CERTDATA)
INSERT userid.cert1 DSN('saved.userid.cert1.sysa') -
PASSWORD(pkcs12 password)TRUST
CHKCERT userid.cert1
F ACF2,REBUILD(USR),CLASS(P)
F ACF2,OMVS(CERTDATA)
-