use SAN only when requested
This commit is contained in:
parent
3e2b516f37
commit
01cdc0e91b
5
csr.js
5
csr.js
|
@ -127,6 +127,7 @@ function createPkcs10Csr(domainKeypair, domains) {
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function addSan() {
|
||||||
var altNames = new org.pkijs.simpl.GENERAL_NAMES({
|
var altNames = new org.pkijs.simpl.GENERAL_NAMES({
|
||||||
names: [
|
names: [
|
||||||
new org.pkijs.simpl.GENERAL_NAME({
|
new org.pkijs.simpl.GENERAL_NAME({
|
||||||
|
@ -148,7 +149,11 @@ function createPkcs10Csr(domainKeypair, domains) {
|
||||||
});
|
});
|
||||||
|
|
||||||
pkcs10_simpl.attributes.push(attribute);
|
pkcs10_simpl.attributes.push(attribute);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (domains.length) {
|
||||||
|
addSan();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue